public class GOTO extends GotoInstruction implements VariableLengthInstruction
index, position, target
length, opcode
Constructor and Description |
---|
GOTO(InstructionHandle target) |
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.
|
protected int |
updatePosition(int offset,
int maxOffset)
Called in pass 2 of InstructionList.setPositions() in order to update the branch target, that may shift due to
variable length instructions.
|
containsTarget, getIndex, getPosition, getTarget, getTargetOffset, getTargetOffset, initFromFile, setIndex, setPosition, setTarget, toString, updateTarget
consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, toString, toString
public GOTO(InstructionHandle target)
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor objectpublic void dump(DataOutputStream out) throws IOException
dump
in class BranchInstruction
out
- Output streamIOException
- Thrown when an I/O exception of some sort has occurred.protected int updatePosition(int offset, int maxOffset)
updatePosition
in class BranchInstruction
offset
- additional offset caused by preceding (variable length) instructionsmaxOffset
- the maximum offset that may be caused by these instructionsCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.