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(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.
|
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, isValidByte, isValidShort, produceStack, readInstruction, setComparator, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitproduceStackpublic LDC(int index)
public void accept(Visitor v)
accept in class Instructionv - Visitor objectpublic void dump(DataOutputStream out) throws IOException
dump in class CPInstructionout - Output streamIOExceptionpublic Class<?>[] getExceptions()
getExceptions in interface ExceptionThrowerpublic Type getType(ConstantPoolGen cpg)
getType in interface TypedInstructiongetType in class CPInstructionpublic Object getValue(ConstantPoolGen cpg)
protected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
initFromFile in class CPInstructionbytes - input streamwide - wide prefix?IOException - may be thrown if the implementation needs to read data from the filepublic final void setIndex(int index)
setIndex in interface IndexedInstructionsetIndex in class CPInstructionindex - in constant pool.protected final void setSize()
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.