Package jminusminus

Class CLObjectInstruction

java.lang.Object
jminusminus.CLInstruction
jminusminus.CLObjectInstruction

class CLObjectInstruction extends CLInstruction
Representation for OBJECT instructions.
  • Constructor Details

    • CLObjectInstruction

      public CLObjectInstruction(int opcode, int pc, int index)
      Constructs a CLObjectInstruction 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 identifies the object.
  • 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.