| Modifier and Type | Field and Description |
|---|---|
| private short | |
| private short | |
| protected int | n
Deprecated
(since 6.0) will be made private; do not access directly, use getter/setter
|
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | LocalVariableInstruction(final short canonTag, final short cTag)
Empty constructor needed for Instruction.readInstruction. |
| protected | LocalVariableInstruction(final short
Instruction opcode opcode, final short Instruction number for compact version, ALOAD_0, e.g. cTag, final int local variable index (unsigned short) n)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | dump(final DataOutputStream
Output stream out)Overrides com. Dump instruction as byte code to stream out. |
| public short | |
| public final int | getIndex()
Implements com. Returns: local variable index (n) referred by this instruction. |
| public Type | Returns: type associated with the instructionImplements com. Returns the type associated with the instruction - in case of ALOAD or ASTORE Type.OBJECT is returned. |
| protected void | initFromFile(final ByteSequence bytes, final boolean wide)
Overrides com. Read needed data (e.g. index) from file. |
| public void | setIndex(final int n)
Implements com. Sets the local variable index. |
| pack-priv final void | |
| public String | Returns: mnemonic for instructionlong/short format switch verbose)Overrides com. Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< local variable index>">" |
| private boolean |
| canonTag | back to summary |
|---|---|
| private short canonTag | |
| cTag | back to summary |
|---|---|
| private short cTag | |
| n | back to summary |
|---|---|
| protected int n
Deprecated (since 6.0) will be made private; do not access directly, use getter/setter | |
| LocalVariableInstruction | back to summary |
|---|---|
| pack-priv LocalVariableInstruction() Empty constructor needed for Instruction.readInstruction. Also used by IINC()! | |
| LocalVariableInstruction | back to summary |
|---|---|
| pack-priv LocalVariableInstruction(final short canonTag, final short cTag) Empty constructor needed for Instruction.readInstruction. Not to be used otherwise. tag and length are defined in readInstruction and initFromFile, respectively. | |
| LocalVariableInstruction | back to summary |
|---|---|
protected LocalVariableInstruction(final short opcode, final short cTag, final int n)
| |
| dump | back to summary |
|---|---|
| public void dump(final DataOutputStream out) throws IOException Overrides com. Dump instruction as byte code to stream out.
| |
| getCanonicalTag | back to summary |
|---|---|
public short getCanonicalTag()
| |
| getIndex | back to summary |
|---|---|
| public final int getIndex() Implements com.
| |
| getType | back to summary |
|---|---|
| public Type getType(final ConstantPoolGen cp) Implements com. Returns the type associated with the instruction - in case of ALOAD or ASTORE Type.OBJECT is returned. This is just a bit incorrect, because ALOAD and ASTORE may work on every ReferenceType (including Type.NULL) and ASTORE may even work on a ReturnaddressType . | |
| initFromFile | back to summary |
|---|---|
| protected void initFromFile(final ByteSequence bytes, final boolean wide) throws IOException Overrides com. Read needed data (e.g. index) from file. (ILOAD <= tag <= ALOAD_3) || (ISTORE <= tag <= ASTORE_3)
| |
| setIndex | back to summary |
|---|---|
| public void setIndex(final int n) Implements com. Sets the local variable index. also updates opcode and length TODO Why?
| |
| setIndexOnly | back to summary |
|---|---|
| pack-priv final void setIndexOnly(final int n) Sets the index of the referenced variable (n) only
| |
| toString | back to summary |
|---|---|
| public String toString(final boolean verbose) Overrides com. Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< local variable index>">" | |
| wide | back to summary |
|---|---|
| private boolean wide() | |