ConstantPoolGen
, LDC
, INVOKEVIRTUAL
Modifier and Type | Field and Description |
---|---|
protected int | index
Deprecated
(since 6.0) will be made private; do not access directly, use getter/setter
|
Access | Constructor and Description |
---|---|
pack-priv | |
protected |
Modifier and Type | Method and Description |
---|---|
public void | dump(final DataOutputStream
Output stream out)Overrides com. |
public final int | Returns: index in constant pool referred by this instruction.Implements com. |
public Type | Returns: type related with this instruction.Implements com. |
protected void | initFromFile(final ByteSequence
input stream bytes, final boolean wide prefix? wide)Overrides com. |
public void | setIndex(final int
in constant pool. index)Implements com. |
public String | Returns: mnemonic for instructionlong/short format switch verbose)Overrides com. |
public String | Returns: mnemonic for instruction with symbolic references resolvedOverrides com. |
index | back to summary |
---|---|
protected int index
Deprecated (since 6.0) will be made private; do not access directly, use getter/setter |
CPInstruction | back to summary |
---|---|
pack-priv CPInstruction() Empty constructor needed for Instruction.readInstruction. Not to be used otherwise. |
CPInstruction | back to summary |
---|---|
protected CPInstruction(final short opcode, final int index)
|
dump | back to summary |
---|---|
public void dump(final DataOutputStream out) throws IOException Overrides com. Dump instruction as byte code to stream out.
|
getIndex | back to summary |
---|---|
public final int getIndex() Implements com.
|
getType | back to summary |
---|---|
public Type getType(final ConstantPoolGen cpg) Implements com. |
initFromFile | back to summary |
---|---|
protected void initFromFile(final ByteSequence bytes, final boolean wide) throws IOException Overrides com. Read needed data (i.e., index) from file.
|
setIndex | back to summary |
---|---|
public void setIndex(final int index) Implements com. Set the index to constant pool.
|
toString | back to summary |
---|---|
public String toString(final boolean verbose) Overrides com. Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< constant pool index>">" |
toString | back to summary |
---|---|
public String toString(final ConstantPool cp) Overrides com. |