org.apache.bcel.generic
public class LDC extends CPInstruction implements PushInstruction, ExceptionThrower, TypedInstruction
Stack: ... -> ..., item
Constructor Summary | |
---|---|
LDC(int index) |
Method Summary | |
---|---|
void | accept(Visitor v)
Call corresponding visitor method(s). |
void | dump(DataOutputStream out)
Dump instruction as byte code to stream out. |
Class[] | getExceptions() |
Type | getType(ConstantPoolGen cpg) |
Object | getValue(ConstantPoolGen cpg) |
protected void | initFromFile(ByteSequence bytes, boolean wide)
Read needed data (e.g. index) from file. |
void | setIndex(int index)
Set the index to constant pool and adjust size. |
protected void | setSize() |
Parameters: v Visitor object
Parameters: out Output stream