class CLArithmeticInstruction extends CLInstruction
instructionInfo, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnits
Constructor and Description |
---|
CLArithmeticInstruction(int opcode,
int pc)
Construct a CLArithmeticInstruction object for ARITHMETIC1 instructions.
|
CLArithmeticInstruction(int opcode,
int pc,
int localVariableIndex,
int constVal,
boolean isWidened)
Construct a CLArithmeticInstruction object for IINC instruction.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<Integer> |
toBytes()
Return the bytecode for this instruction.
|
byteAt, isValid, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnits
public CLArithmeticInstruction(int opcode, int pc)
opcode
- the opcode for this instruction.pc
- index of this instruction within the code array of a method.public CLArithmeticInstruction(int opcode, int pc, int localVariableIndex, int constVal, 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.constVal
- increment value.isWidened
- whether this instruction is preceeded by the WIDE (widening)
instruction.public ArrayList<Integer> toBytes()
CLInstruction
toBytes
in class CLInstruction