Top Description Fields Constructors Methods
org.apache.bcel.generic

public abstract Class JsrInstruction

extends BranchInstruction
implements UnconditionalBranch, TypedInstruction, StackProducer
Class Inheritance
All Implemented Interfaces
org.apache.bcel.generic.StackProducer, org.apache.bcel.generic.TypedInstruction, org.apache.bcel.generic.UnconditionalBranch
Known Direct Subclasses
org.apache.bcel.generic.JSR_W, org.apache.bcel.generic.JSR

Super class for JSR - Jump to subroutine

Field Summary

Inherited from org.apache.bcel.generic.BranchInstruction:
indexpositiontarget

Constructor Summary

AccessConstructor and Description
pack-priv
JsrInstruction()

Empty constructor needed for Instruction.readInstruction.

pack-priv
JsrInstruction(final short opcode, final InstructionHandle target)

Method Summary

Modifier and TypeMethod and Description
public Type

Returns:

return address type
getType
(final ConstantPoolGen cp)

Implements org.apache.bcel.generic.TypedInstruction.getType.

public InstructionHandle

Returns:

an InstructionHandle to the "next" instruction that will be executed when RETurned from a subroutine.
physicalSuccessor
()

Returns an InstructionHandle to the physical successor of this JsrInstruction.

Inherited from org.apache.bcel.generic.BranchInstruction:
containsTargetdisposedumpgetIndexgetPositiongetTargetgetTargetOffsetgetTargetOffsetinitFromFilenotifyTargetsetIndexsetPositionsetTargettoStringupdatePositionupdateTarget

Constructor Detail

JsrInstructionback to summary
pack-priv JsrInstruction()

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

JsrInstructionback to summary
pack-priv JsrInstruction(final short opcode, final InstructionHandle target)

Method Detail

getTypeback to summary
public Type getType(final ConstantPoolGen cp)

Implements org.apache.bcel.generic.TypedInstruction.getType.

Returns:Type

return address type

Annotations
@Override
physicalSuccessorback to summary
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:InstructionHandle

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