public class GOTO extends GotoInstruction implements VariableLengthInstruction
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
index, position, target
length, opcode
Constructor and Description |
---|
GOTO()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction().
|
GOTO(InstructionHandle target) |
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.
|
protected int |
updatePosition(int offset,
int max_offset)
Called in pass 2 of InstructionList.setPositions() in order to update
the branch target, that may shift due to variable length instructions.
|
containsTarget, dispose, getIndex, getTarget, getTargetOffset, getTargetOffset, initFromFile, notifyTarget, setTarget, toString, updateTarget
consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, hashCode, produceStack, readInstruction, setComparator, toString, toString
private static final long serialVersionUID
GOTO()
public GOTO(InstructionHandle target)
public void dump(java.io.DataOutputStream out) throws java.io.IOException
dump
in class BranchInstruction
out
- Output streamjava.io.IOException
protected int updatePosition(int offset, int max_offset)
updatePosition
in class BranchInstruction
offset
- additional offset caused by preceding (variable length) instructionsmax_offset
- the maximum offset that may be caused by these instructionspublic void accept(Visitor v)
accept
in class Instruction
v
- Visitor object