org.apache.bcel.generic

Class JsrInstruction

public abstract class JsrInstruction extends BranchInstruction implements UnconditionalBranch, TypedInstruction, StackProducer

Super class for JSR - Jump to subroutine

Version: $Id: JsrInstruction.java 386056 2006-03-15 11:31:56Z tcurdt $

Author: M. Dahm

Constructor Summary
JsrInstruction(short opcode, InstructionHandle target)
JsrInstruction()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction().
Method Summary
TypegetType(ConstantPoolGen cp)
InstructionHandlephysicalSuccessor()
Returns an InstructionHandle to the physical successor of this JsrInstruction.

Constructor Detail

JsrInstruction

JsrInstruction(short opcode, InstructionHandle target)

JsrInstruction

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

Method Detail

getType

public Type getType(ConstantPoolGen cp)

Returns: return address type

physicalSuccessor

public InstructionHandle physicalSuccessor()
Returns an InstructionHandle to the physical successor of this JsrInstruction. For this method to work, this JsrInstruction object must not be shared between multiple InstructionHandle objects! Formally, there must not be InstructionHandle objects i, j where i != j and i.getInstruction() == this == j.getInstruction().

Returns: an InstructionHandle to the "next" instruction that will be executed when RETurned from a subroutine.