Class InsnConstOp

  • All Implemented Interfaces:
    VMConstants
    Direct Known Subclasses:
    InsnInterfaceInvoke

    public class InsnConstOp
    extends Insn
    An instruction which requires a single constant from the constant pool as an immediate operand
    • Method Detail

      • nStackArgs

        public int nStackArgs()
        Description copied from class: Insn
        How many words of stack operands does this instruction take?
        Specified by:
        nStackArgs in class Insn
      • nStackResults

        public int nStackResults()
        Description copied from class: Insn
        How many words of stack results does this instruction deposit?
        Specified by:
        nStackResults in class Insn
      • argTypes

        public String argTypes()
        Description copied from class: Insn
        What are the types of the stack operands ?
        Specified by:
        argTypes in class Insn
      • resultTypes

        public String resultTypes()
        Description copied from class: Insn
        What are the types of the stack results?
        Specified by:
        resultTypes in class Insn
      • branches

        public boolean branches()
        Description copied from class: Insn
        Does this instruction branch?
        Specified by:
        branches in class Insn
      • value

        public ConstBasic value()
        Return the constant pool entry which is the immediate operand
      • setValue

        public void setValue​(ConstBasic newValue)
        Modify the referenced constant