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 org. |
| public final int | Returns: index in constant pool referred by this instruction.Implements org. |
| public Type | Returns: type related with this instruction.Implements org. |
| protected void | initFromFile(final ByteSequence
input stream bytes, final boolean wide prefix? wide)
Read needed data (i.e., index) from file.
|
| public void | setIndex(final int
in constant pool. index)Implements org. |
| public String | Returns: mnemonic for instructionlong/short format switch verbose)Overrides org. |
| public String | Returns: mnemonic for instruction with symbolic references resolvedOverrides org. |
| 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 org. Dump instruction as byte code to stream out.
| |
| getIndex | back to summary |
|---|---|
| public final int getIndex() Implements org.
| |
| getType | back to summary |
|---|---|
| public Type getType(final ConstantPoolGen cpg) Implements org. | |
| initFromFile | back to summary |
|---|---|
| protected void initFromFile(final ByteSequence bytes, final boolean wide) throws IOException Overrides org. Read needed data (i.e., index) from file.
| |
| setIndex | back to summary |
|---|---|
| public void setIndex(final int index) Implements org. Sets the index to constant pool.
| |
| toString | back to summary |
|---|---|
| public String toString(final boolean verbose) Overrides org. 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 org. | |