Package jminusminus
Class CLComparisonInstruction
java.lang.Object
jminusminus.CLInstruction
jminusminus.CLComparisonInstruction
Representation for COMPARISON instructions.
-
Field Summary
Fields inherited from class jminusminus.CLInstruction
instructionInfo, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnits
-
Constructor Summary
ConstructorDescriptionCLComparisonInstruction
(int opcode, int pc) Constructs a CLComparisonInstruction object. -
Method Summary
Methods inherited from class jminusminus.CLInstruction
byteAt, isValid, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnits
-
Constructor Details
-
CLComparisonInstruction
public CLComparisonInstruction(int opcode, int pc) Constructs a CLComparisonInstruction object.- Parameters:
opcode
- the opcode for this instruction.pc
- index of this instruction within the code array of a method.
-
-
Method Details
-
toBytes
Returns the bytecode for this instruction.- Specified by:
toBytes
in classCLInstruction
- Returns:
- the bytecode for this instruction.
-