class CLLoadStoreInstruction extends CLInstruction
instructionInfo, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnits
Constructor and Description |
---|
CLLoadStoreInstruction(int opcode,
int pc)
Construct a CLLoadStoreInstruction object for LOAD_STORE1 instructions.
|
CLLoadStoreInstruction(int opcode,
int pc,
int constVal)
Construct a CLLoadStoreInstruction object for LOAD_STORE3 and LOAD_STORE4
instructions.
|
CLLoadStoreInstruction(int opcode,
int pc,
int localVariableIndex,
boolean isWidened)
Construct a CLLoadStoreInstruction object for LOAD_STORE2 instructions.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<Integer> |
toBytes()
Return the bytecode for this instruction.
|
byteAt, isValid, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnits
public CLLoadStoreInstruction(int opcode, int pc)
opcode
- the opcode for this instruction.pc
- index of this instruction within the code array of a method.public CLLoadStoreInstruction(int opcode, int pc, int localVariableIndex, boolean isWidened)
opcode
- the opcode for this instruction.pc
- index of this instruction within the code array of a method.localVariableIndex
- index of the local variable to increment.isWidened
- whether this instruction is preceeded by the WIDE (widening)
instruction.public CLLoadStoreInstruction(int opcode, int pc, int constVal)
opcode
- the opcode for this instruction.pc
- index of this instruction within the code array of a method.constVal
- a byte (for BIPUSH), a short (for SIPUSH), or a constant pool
index for LDC instructions.public ArrayList<Integer> toBytes()
CLInstruction
toBytes
in class CLInstruction