Package jminusminus
Class CLArrayInstruction
java.lang.Object
jminusminus.CLInstruction
jminusminus.CLArrayInstruction
Representation for ARRAY1, ARRAY2 and ARRAY3 instructions.
-
Field Summary
Fields inherited from class jminusminus.CLInstruction
instructionInfo, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnits
-
Constructor Summary
ConstructorDescriptionCLArrayInstruction
(int opcode, int pc) Constructs a CLArrayInstruction object for ARRAY3 instructions.CLArrayInstruction
(int opcode, int pc, int type) Constructs a CLArrayInstruction object for ARRAY1 instructions.CLArrayInstruction
(int opcode, int pc, int type, int dim) Constructs a CLArrayInstruction object for ARRAY2 instructions. -
Method Summary
Methods inherited from class jminusminus.CLInstruction
byteAt, isValid, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnits
-
Constructor Details
-
CLArrayInstruction
public CLArrayInstruction(int opcode, int pc, int type) Constructs a CLArrayInstruction object for ARRAY1 instructions.- Parameters:
opcode
- the opcode for this instruction.pc
- index of this instruction within the code array of a method.type
- number identifying the type.
-
CLArrayInstruction
public CLArrayInstruction(int opcode, int pc, int type, int dim) Constructs a CLArrayInstruction object for ARRAY2 instructions.- Parameters:
opcode
- the opcode for this instruction.pc
- index of this instruction within the code array of a method.type
- number identifying the type.dim
- number of dimensions.
-
CLArrayInstruction
public CLArrayInstruction(int opcode, int pc) Constructs a CLArrayInstruction object for ARRAY3 instructions.- 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.
-