Package jminusminus

Class CLFieldInstruction

java.lang.Object
jminusminus.CLInstruction
jminusminus.CLFieldInstruction

class CLFieldInstruction extends CLInstruction
Representation for FIELD instructions.
  • Constructor Details

    • CLFieldInstruction

      public CLFieldInstruction(int opcode, int pc, int index, int stackUnits)
      Constructs a CLFieldInstruction object.
      Parameters:
      opcode - the opcode for this instruction.
      pc - index of this instruction within the code array of a method.
      index - index into the constant pool, the item at which contains the name and descriptor of the field.
      stackUnits - words produced - words consumed from the operand stack by this instruction.
  • Method Details

    • toBytes

      public ArrayList<Integer> toBytes()
      Returns the bytecode for this instruction.
      Specified by:
      toBytes in class CLInstruction
      Returns:
      the bytecode for this instruction.