org.apache.bcel.generic
Class GOTO
- Cloneable, InstructionTargeter, Serializable, UnconditionalBranch, VariableLengthInstruction
GOTO - Branch always (to relative offset, not absolute address)
$Id: GOTO.java 152690 2001-10-29 19:59:54Z jvanzyl $
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 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, dump, getIndex, getTarget, getTargetOffset, getTargetOffset, initFromFile, setTarget, toString, updatePosition, updateTarget |
accept, consumeStack, copy, dump, equals, getComparator, getLength, getName, getOpcode, initFromFile, produceStack, readInstruction, setComparator, toString, toString, toString |
accept
public void accept(Visitor v)
Call corresponding visitor method(s). The order is:
Call visitor methods of implemented interfaces first, then
call methods according to the class hierarchy in descending order,
i.e., the most specific visitXXX() call comes last.
- accept in interface Instruction
dump
public void dump(DataOutputStream out)
throws IOException Dump instruction as byte code to stream out.
- dump in interface BranchInstruction
updatePosition
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.
- updatePosition in interface BranchInstruction