org.apache.bcel.generic

Class GotoInstruction

Implemented Interfaces:
Cloneable, InstructionTargeter, Serializable, UnconditionalBranch
Known Direct Subclasses:
GOTO, GOTO_W

public abstract class GotoInstruction
extends BranchInstruction
implements UnconditionalBranch

Super class for GOTO
Version:
$Id: GotoInstruction.java 386056 2006-03-15 11:31:56Z tcurdt $
Author:
M. Dahm

Field Summary

Fields inherited from class org.apache.bcel.generic.BranchInstruction

index, position, target

Fields inherited from class org.apache.bcel.generic.Instruction

cmp, length, opcode

Constructor Summary

GotoInstruction()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction().
GotoInstruction(short opcode, InstructionHandle target)
Common super constructor

Method Summary

Methods inherited from class org.apache.bcel.generic.BranchInstruction

containsTarget, dispose, dump, getIndex, getTarget, getTargetOffset, getTargetOffset, initFromFile, notifyTarget, setTarget, toString, updatePosition, updateTarget

Methods inherited from class org.apache.bcel.generic.Instruction

accept, className, consumeStack, copy, dispose, dump, equals, getComparator, getLength, getName, getOpcode, initFromFile, produceStack, readInstruction, setComparator, setOpcode, toString, toString, toString

Constructor Details

GotoInstruction

(package private)  GotoInstruction()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.

GotoInstruction

(package private)  GotoInstruction(short opcode,
                                   InstructionHandle target)
Common super constructor
Parameters:
opcode - Instruction opcode
target - instruction to branch to