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

public abstract Class JsrInstruction

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

Super class for JSR - Jump to subroutine

Field Summary

Inherited from com.sun.org.apache.bcel.internal.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
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 com.sun.org.apache.bcel.internal.generic.BranchInstruction:
containsTargetdisposedumpgetIndexgetPositiongetTargetgetTargetOffsetgetTargetOffsetinitFromFilenotifyTargetsetIndexsetOpcodesetPositionsetTargettoStringupdatePositionupdateTarget

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 com.sun.org.apache.bcel.internal.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.