org.apache.bcel.generic
public abstract class LocalVariableInstruction extends Instruction implements TypedInstruction, IndexedInstruction
Field Summary | |
---|---|
protected int | n |
Constructor Summary | |
---|---|
protected | LocalVariableInstruction(short opcode, short c_tag, int n) |
Method Summary | |
---|---|
void | dump(DataOutputStream out)
Dump instruction as byte code to stream out. |
short | getCanonicalTag() |
int | getIndex() |
Type | getType(ConstantPoolGen cp)
Returns the type associated with the instruction -
in case of ALOAD or ASTORE Type.OBJECT is returned.
|
protected void | initFromFile(ByteSequence bytes, boolean wide)
Read needed data (e.g. index) from file.
|
void | setIndex(int n)
Set the local variable index |
String | toString(boolean verbose)
Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")" "<"< local variable index>">"
|
Parameters: opcode Instruction opcode c_tag Instruction number for compact version, ALOAD_0, e.g. n local variable index (unsigned short)
Parameters: out Output stream
Returns: canonical tag for instruction, e.g., ALOAD for ALOAD_0
Returns: local variable index referred by this instruction.
Returns: type associated with the instruction
Parameters: verbose long/short format switch
Returns: mnemonic for instruction