class CLMethodInstruction extends CLInstruction
instructionInfo, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnits| Constructor and Description |
|---|
CLMethodInstruction(int opcode,
int pc)
Construct a CLMethodInstruction object for METHOD2 instructions.
|
CLMethodInstruction(int opcode,
int pc,
int index,
int stackUnits)
Construct a CLMethodInstruction object for METHOD1 instructions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setArgumentCount(int nArgs)
Set the number of arguments for the method for INVOKEINTERFACE
instruction.
|
ArrayList<Integer> |
toBytes()
Return the bytecode for this instruction.
|
byteAt, isValid, localVariableIndex, mnemonic, opcode, operandCount, pc, stackUnitspublic CLMethodInstruction(int opcode,
int pc,
int index,
int stackUnits)
opcode - the opcode for this instruction.pc - index of this instruction within the code array of a method.index - index into the constant pool, the item at which contains the
name and descriptor of the method.stackUnits - words produced - words consumed from the operand stack by this
instruction.public CLMethodInstruction(int opcode,
int pc)
opcode - the opcode for this instruction.pc - index of this instruction within the code array of a method.public void setArgumentCount(int nArgs)
nArgs - number of arguments for the method.public ArrayList<Integer> toBytes()
CLInstructiontoBytes in class CLInstruction