Class JsrInstruction

All Implemented Interfaces:
Cloneable, InstructionTargeter, StackProducer, TypedInstruction, UnconditionalBranch
Direct Known Subclasses:
JSR, JSR_W

Superclass for JSR - Jump to subroutine
  • Method Details

    • getType

      Gets the return address type.
      Specified by:
      getType in interface TypedInstruction
      Parameters:
      cp - The constant pool generator.
      Returns:
      return address type.
    • 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.