public abstract class LocalVariableInstruction extends Instruction implements TypedInstruction, IndexedInstruction
| Modifier and Type | Field and Description |
|---|---|
protected int |
n
Deprecated.
(since 6.0) will be made private; do not access directly, use getter/setter
|
length, opcode| Modifier | Constructor and Description |
|---|---|
protected |
LocalVariableInstruction(short opcode,
short cTag,
int n) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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>">"
|
accept, consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, toString, toString@Deprecated protected int n
protected LocalVariableInstruction(short opcode,
short cTag,
int n)
opcode - Instruction opcodecTag - Instruction number for compact version, ALOAD_0, e.g.n - local variable index (unsigned short)public void dump(DataOutputStream out) throws IOException
dump in class Instructionout - Output streamIOExceptionpublic String toString(boolean verbose)
toString in class Instructionverbose - long/short format switchprotected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
(ILOAD <= tag <= ALOAD_3) || (ISTORE <= tag <= ASTORE_3)
initFromFile in class Instructionbytes - byte sequence to read fromwide - "wide" instruction flagIOException - may be thrown if the implementation needs to read data from the filepublic final int getIndex()
getIndex in interface IndexedInstructionpublic void setIndex(int n)
setIndex in interface IndexedInstructionsetIndexOnly(int)public short getCanonicalTag()
public Type getType(ConstantPoolGen cp)
getType in interface TypedInstructionCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.