public class GOTO extends JVMInstruction
| Modifier and Type | Field and Description |
|---|---|
protected int |
targetPosition |
attr, insnIndex, mi, position| Constructor and Description |
|---|
GOTO(int targetPosition) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(InstructionVisitor insVisitor) |
Instruction |
execute(ThreadInfo th)
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() |
int |
getLength()
return the length in bytes of this instruction.
|
Instruction |
getTarget() |
boolean |
isBackJump()
answer if this is a potential loop closing jump
|
String |
toString() |
Instruction |
typeSafeClone(MethodInfo mi)
this is overridden by any Instruction that use a cache for class or
method to provide a type safe cloning
|
addAttr, attrIterator, attrIterator, cleanupTransients, getAttr, getAttr, getFileLocation, getFilePos, getInstructionIndex, getLineNumber, getMethodInfo, getMnemonic, getNext, getNext, getNextAttr, getPosition, getPrev, getSourceLine, getSourceLocation, getSourceOrLocation, hasAttr, hasAttr, init, isCompleted, isExtendedInstruction, isFirstInstruction, isSchedulingRelevant, removeAttr, replaceAttr, requiresClinitExecution, setAttr, setContext, setLocation, setMethodInfopublic Instruction execute(ThreadInfo th)
Instructionexecute in class Instructionpublic boolean isBackJump()
InstructionisBackJump in class Instructionpublic Instruction getTarget()
public int getLength()
InstructiongetLength in class Instructionpublic int getByteCode()
getByteCode in class Instructionpublic String toString()
toString in class Instructionpublic void accept(InstructionVisitor insVisitor)
public Instruction typeSafeClone(MethodInfo mi)
InstructiontypeSafeClone in class Instruction