APIdia Launch Partner
Top Description Constructors Methods
com.sun.org.apache.bcel.internal.generic

public Class GOTO

extends GotoInstruction
implements VariableLengthInstruction
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.bcel.internal.generic.VariableLengthInstruction
Imports
java.io.DataOutputStream, .IOException

GOTO - Branch always (to relative offset, not absolute address)

Constructor Summary

AccessConstructor and Description
pack-priv
GOTO()

Empty constructor needed for Instruction.readInstruction.

public
GOTO(final InstructionHandle target)

Method Summary

Modifier and TypeMethod and Description
public void
accept(final Visitor
Visitor object
v
)

Implements abstract com.sun.org.apache.bcel.internal.generic.Instruction.accept.

Call corresponding visitor method(s).

public void
dump(final DataOutputStream
Output stream
out
)

Overrides com.sun.org.apache.bcel.internal.generic.BranchInstruction.dump.

Dump instruction as byte code to stream out.

protected int

Returns:

additional offset caused by possible change of this instruction's length
updatePosition
(final int
additional offset caused by preceding (variable length) instructions
offset
,
final int
the maximum offset that may be caused by these instructions
maxOffset
)

Overrides com.sun.org.apache.bcel.internal.generic.BranchInstruction.updatePosition.

Called in pass 2 of InstructionList.setPositions() in order to update the branch target, that may shift due to variable length instructions.

Constructor Detail

GOTOback to summary
pack-priv GOTO()

Empty constructor needed for Instruction.readInstruction. Not to be used otherwise.

GOTOback to summary
public GOTO(final InstructionHandle target)

Method Detail

acceptback to summary
public void accept(final Visitor v)

Implements abstract com.sun.org.apache.bcel.internal.generic.Instruction.accept.

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.

Parameters
v:Visitor

Visitor object

Annotations
@Override
dumpback to summary
public void dump(final DataOutputStream out) throws IOException

Overrides com.sun.org.apache.bcel.internal.generic.BranchInstruction.dump.

Dump instruction as byte code to stream out.

Parameters
out:DataOutputStream

Output stream

Annotations
@Override
Exceptions
IOException:

Doc from com.sun.org.apache.bcel.internal.generic.Instruction.dump.

Thrown when an I/O exception of some sort has occurred.

updatePositionback to summary
protected int updatePosition(final int offset, final int maxOffset)

Overrides com.sun.org.apache.bcel.internal.generic.BranchInstruction.updatePosition.

Called in pass 2 of InstructionList.setPositions() in order to update the branch target, that may shift due to variable length instructions.

Parameters
offset:int

additional offset caused by preceding (variable length) instructions

maxOffset:int

the maximum offset that may be caused by these instructions

Returns:int

additional offset caused by possible change of this instruction's length

Annotations
@Override