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

public abstract Class ReturnInstruction

extends Instruction
implements ExceptionThrower, TypedInstruction, StackConsumer
Class Inheritance
All Implemented Interfaces
org.apache.bcel.generic.StackConsumer, org.apache.bcel.generic.TypedInstruction, org.apache.bcel.generic.ExceptionThrower
Known Direct Subclasses
org.apache.bcel.generic.ARETURN, org.apache.bcel.generic.DRETURN, org.apache.bcel.generic.FRETURN, org.apache.bcel.generic.IRETURN, org.apache.bcel.generic.LRETURN, org.apache.bcel.generic.RETURN
Imports
org.apache.bcel.Const, .ExceptionConst

Super class for the xRETURN family of instructions.

Field Summary

Inherited from org.apache.bcel.generic.Instruction:
EMPTY_ARRAYlengthopcode

Constructor Summary

AccessConstructor and Description
pack-priv
ReturnInstruction()

Empty constructor needed for Instruction.readInstruction.

protected
ReturnInstruction(final short
of instruction
opcode
)

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public Type
public Type

Returns:

type associated with the instruction
getType
(final ConstantPoolGen cp)

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

Inherited from org.apache.bcel.generic.Instruction:
acceptconsumeStackcopydisposedumpequalsgetComparatorgetLengthgetNamegetOpcodehashCodeinitFromFileisValidByteisValidShortproduceStackreadInstructionsetComparatorsetLengthsetOpcodetoStringtoStringtoString

Constructor Detail

ReturnInstructionback to summary
pack-priv ReturnInstruction()

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

ReturnInstructionback to summary
protected ReturnInstruction(final short opcode)
Parameters
opcode:short

of instruction

Method Detail

getExceptionsback to summary
public Class<?>[] getExceptions()

Implements org.apache.bcel.generic.ExceptionThrower.getExceptions.

Annotations
@Override
getTypeback to summary
public Type getType()
getTypeback to summary
public Type getType(final ConstantPoolGen cp)

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

Returns:Type

type associated with the instruction

Annotations
@Override