Package jminusminus

Class CLConversionInstruction

java.lang.Object
jminusminus.CLInstruction
jminusminus.CLConversionInstruction

class CLConversionInstruction extends CLInstruction
Representation for CONVERSION instructions.
  • Constructor Details

    • CLConversionInstruction

      public CLConversionInstruction(int opcode, int pc)
      Constructs a CLConversionInstruction object.
      Parameters:
      opcode - the opcode for this instruction.
      pc - index of this instruction within the code array of a method.
  • 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.