org.apache.bcel.generic
public abstract class LocalVariableInstruction extends Instruction implements TypedInstruction, IndexedInstruction
Version: $Id: LocalVariableInstruction.java 386056 2006-03-15 11:31:56Z tcurdt $
| Field Summary | |
|---|---|
| short | canon_tag |
| short | c_tag |
| protected int | n |
| Constructor Summary | |
|---|---|
| LocalVariableInstruction(short canon_tag, short c_tag)
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction(). | |
| LocalVariableInstruction()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction(). | |
| 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>">"
|
| boolean | wide() |
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