Package jminusminus

Class CLInsInfo

java.lang.Object
jminusminus.CLInsInfo

class CLInsInfo extends Object
This class stores static information about a JVM instruction.
  • Field Details

    • opcode

      public int opcode
      Opcode for this instruction.
    • mnemonic

      public String mnemonic
      Mnemonic for this instruction.
    • operandCount

      public int operandCount
      Number of operands for this instruction.
    • stackUnits

      public int stackUnits
      Words produced - words consumed from the operand stack by this instruction.
    • localVariableIndex

      public int localVariableIndex
      Index of the local variable that this instruction refers to; applies only to instructions that operate on local variables.
    • category

      public CLConstants.Category category
      The category under which instruction belongs.
  • Constructor Details

    • CLInsInfo

      public CLInsInfo(int opcode, String mnemonic, int operandCount, int localVariableIndex, int stackUnits, CLConstants.Category category)
      Constructs a CLInsInfo object.
      Parameters:
      opcode - opcode for this instruction.
      mnemonic - name for this instruction.
      operandCount - number of operands for this instruction.
      localVariableIndex - index of the local variable that this instruction refers to.
      stackUnits - words produced - words consumed from the operand stack by this instruction.
      category - category under which this instruction belogs.