Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.bcel.generic.Instruction
org.apache.bcel.generic.CPInstruction
org.apache.bcel.generic.LDC
Stack: ... -> ..., item
Field Summary |
Fields inherited from class org.apache.bcel.generic.CPInstruction | |
index |
Fields inherited from class org.apache.bcel.generic.Instruction | |
length , opcode |
Constructor Summary | |
|
Method Summary | |
void | |
void |
|
Class[] | |
Type |
|
Object |
|
protected void |
|
void |
|
protected void |
|
Methods inherited from class org.apache.bcel.generic.CPInstruction | |
dump , getIndex , getType , initFromFile , setIndex , toString , toString |
Methods inherited from class org.apache.bcel.generic.Instruction | |
accept , consumeStack , copy , dump , equals , getComparator , getLength , getName , getOpcode , initFromFile , produceStack , readInstruction , setComparator , toString , toString , toString |
public void accept(Visitor v)
Call corresponding visitor method(s). The order is: Call visitor methods of implemented interfaces first, then call methods according to the class hierarchy in descending order, i.e., the most specific visitXXX() call comes last.
- Overrides:
- accept in interface Instruction
- Parameters:
v
- Visitor object
public void dump(DataOutputStream out) throws IOException
Dump instruction as byte code to stream out.
- Overrides:
- dump in interface CPInstruction
- Parameters:
out
- Output stream
public Type getType(ConstantPoolGen cpg)
- Specified by:
- getType in interface TypedInstruction
- Overrides:
- getType in interface CPInstruction
protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
Read needed data (e.g. index) from file.
- Overrides:
- initFromFile in interface CPInstruction
public final void setIndex(int index)
Set the index to constant pool and adjust size.
- Specified by:
- setIndex in interface IndexedInstruction
- Overrides:
- setIndex in interface CPInstruction
protected final void setSize()