Class ReturnInstruction

java.lang.Object
org.apache.bcel.generic.Instruction
org.apache.bcel.generic.ReturnInstruction
All Implemented Interfaces:
Cloneable, ExceptionThrower, StackConsumer, TypedInstruction
Direct Known Subclasses:
ARETURN, DRETURN, FRETURN, IRETURN, LRETURN, RETURN

Superclass for the xRETURN family of instructions.
  • Constructor Details

    • ReturnInstruction

      protected ReturnInstruction(short opcode)
      Constructs a ReturnInstruction.
      Parameters:
      opcode - of instruction.
  • Method Details

    • getExceptions

      public Class<?>[] getExceptions()
      Description copied from interface: ExceptionThrower
      Gets the exceptions that may be thrown by this instruction.
      Specified by:
      getExceptions in interface ExceptionThrower
      Returns:
      The exceptions that may be thrown by this instruction.
    • getType

      public Type getType()
      Gets the type of the returned value.
      Returns:
      The type.
    • getType

      Gets the type associated with the instruction.
      Specified by:
      getType in interface TypedInstruction
      Parameters:
      cp - The constant pool generator.
      Returns:
      type associated with the instruction.