public class LDC extends CPInstruction implements PushInstruction, ExceptionThrower
Stack: ... -> ..., item
indexlength, opcode| Constructor and Description |
|---|
LDC(int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
void |
dump(java.io.DataOutputStream out)
Dump instruction as byte code to stream out.
|
java.lang.Class<?>[] |
getExceptions() |
Type |
getType(ConstantPoolGen cpg) |
java.lang.Object |
getValue(ConstantPoolGen cpg) |
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Read needed data (e.g.
|
void |
setIndex(int index)
Set the index to constant pool and adjust size.
|
protected void |
setSize() |
getIndex, toString, toStringconsumeStack, copy, equals, getComparator, getLength, getName, getOpcode, hashCode, produceStack, readInstruction, setComparator, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitproduceStackprotected final void setSize()
public void dump(java.io.DataOutputStream out)
throws java.io.IOException
dump in class CPInstructionout - Output streamjava.io.IOExceptionpublic final void setIndex(int index)
setIndex in interface IndexedInstructionsetIndex in class CPInstructionindex - in constant pool.protected void initFromFile(ByteSequence bytes, boolean wide) throws java.io.IOException
initFromFile in class CPInstructionbytes - input streamwide - wide prefix?java.io.IOException - may be thrown if the implementation needs to read data from the filepublic java.lang.Object getValue(ConstantPoolGen cpg)
public Type getType(ConstantPoolGen cpg)
getType in interface TypedInstructiongetType in class CPInstructionpublic java.lang.Class<?>[] getExceptions()
getExceptions in interface ExceptionThrowerpublic void accept(Visitor v)
accept in class Instructionv - Visitor object