org.apache.bcel.generic
public abstract class CPInstruction extends Instruction implements TypedInstruction, IndexedInstruction
See Also: ConstantPoolGen LDC
Field Summary | |
---|---|
protected int | index |
Constructor Summary | |
---|---|
protected | CPInstruction(short opcode, int index) |
Method Summary | |
---|---|
void | dump(DataOutputStream out)
Dump instruction as byte code to stream out. |
int | getIndex() |
Type | getType(ConstantPoolGen cpg) |
protected void | initFromFile(ByteSequence bytes, boolean wide)
Read needed data (i.e., index) from file. |
void | setIndex(int index)
Set the index to constant pool. |
String | toString(boolean verbose)
Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")" "<"< constant pool index>">"
|
String | toString(ConstantPool cp) |
Parameters: index to constant pool
Parameters: out Output stream
Returns: index in constant pool referred by this instruction.
Returns: type related with this instruction.
Parameters: bytes input stream wide wide prefix?
Parameters: index in constant pool.
Parameters: verbose long/short format switch
Returns: mnemonic for instruction
Returns: mnemonic for instruction with symbolic references resolved