public class LDC extends JVMInstruction
Modifier and Type | Class and Description |
---|---|
static class |
LDC.Type |
Modifier and Type | Field and Description |
---|---|
protected String |
string |
protected int |
value |
attr, insnIndex, mi, position
Constructor and Description |
---|
LDC() |
LDC(float f) |
LDC(int v) |
LDC(String s,
boolean isClass) |
Modifier and Type | Method and Description |
---|---|
void |
accept(InstructionVisitor insVisitor) |
Instruction |
execute(ThreadInfo ti)
this is the real workhorse
returns next instruction to enter in this thread
<2do> it's unfortunate we roll every side effect into this method, because
it diminishes the value of the 'executeInstruction' notification: all
insns that require some sort of late binding (InvokeVirtual, GetField, ..)
are not yet fully analyzable (e.g.
|
int |
getByteCode() |
String |
getClassValue() |
float |
getFloatValue() |
int |
getLength()
return the length in bytes of this instruction.
|
String |
getStringValue() |
LDC.Type |
getType() |
int |
getValue() |
boolean |
isString() |
addAttr, attrIterator, attrIterator, cleanupTransients, getAttr, getAttr, getFileLocation, getFilePos, getInstructionIndex, getLineNumber, getMethodInfo, getMnemonic, getNext, getNext, getNextAttr, getPosition, getPrev, getSourceLine, getSourceLocation, getSourceOrLocation, hasAttr, hasAttr, init, isBackJump, isCompleted, isExtendedInstruction, isFirstInstruction, isSchedulingRelevant, removeAttr, replaceAttr, requiresClinitExecution, setAttr, setContext, setLocation, setMethodInfo, toString, typeSafeClone
protected String string
protected int value
public LDC()
public LDC(String s, boolean isClass)
public LDC(int v)
public LDC(float f)
public Instruction execute(ThreadInfo ti)
Instruction
execute
in class Instruction
public int getLength()
Instruction
getLength
in class Instruction
public int getByteCode()
getByteCode
in class Instruction
public int getValue()
public LDC.Type getType()
public boolean isString()
public float getFloatValue()
public String getStringValue()
public String getClassValue()
public void accept(InstructionVisitor insVisitor)