public class LDC extends CPInstruction implements PushInstruction, ExceptionThrower, TypedInstruction
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(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() |
getIndex, toString, toStringconsumeStack, copy, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitproduceStackprotected final void setSize()
public void dump(DataOutputStream out) throws IOException
dump in class CPInstructionout - Output streamIOExceptionpublic final void setIndex(int index)
setIndex in interface IndexedInstructionsetIndex in class CPInstructionindex - in constant pool.protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
initFromFile in class CPInstructionbytes - input streamwide - wide prefix?IOExceptionpublic Object getValue(ConstantPoolGen cpg)
public Type getType(ConstantPoolGen cpg)
getType in interface TypedInstructiongetType in class CPInstructionpublic Class[] getExceptions()
getExceptions in interface ExceptionThrowerpublic void accept(Visitor v)
accept in class Instructionv - Visitor objectCopyright © 2018–2021 mhoffrogge. All rights reserved.