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. Dump instruction as byte code to stream out. |
| public final int | getIndex()
Implements com. Returns: index in constant pool referred by this instruction. |
| public Type | getType(final ConstantPoolGen cpg)
Implements com. Returns: type related with this instruction. |
| protected void | initFromFile(final ByteSequence
input stream bytes, final boolean wide prefix? wide)Overrides com. Read needed data (i.e., index) from file. |
| public void | setIndex(final int
in constant pool. index)Implements com. Sets the index to constant pool. |
| public String | Returns: mnemonic for instructionlong/short format switch verbose)Overrides com. Long output format: <name of opcode> "["<opcode number>"]" "("<length of instruction>")" "<"< constant pool index>">" |
| public String | toString(final ConstantPool cp)
Overrides com. Returns: mnemonic for instruction with symbolic references resolved |
| 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. Sets 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. | |