org.apache.bcel.generic

Class RET

public class RET extends Instruction implements IndexedInstruction, TypedInstruction

RET - Return from subroutine
Stack: ... -> ...
Constructor Summary
RET(int index)
Method Summary
voidaccept(Visitor v)
Call corresponding visitor method(s).
voiddump(DataOutputStream out)
Dump instruction as byte code to stream out.
intgetIndex()
TypegetType(ConstantPoolGen cp)
protected voidinitFromFile(ByteSequence bytes, boolean wide)
Read needed data (e.g. index) from file.
voidsetIndex(int n)
Set index of local variable containg the return address
StringtoString(boolean verbose)

Constructor Detail

RET

public RET(int index)

Method Detail

accept

public void accept(Visitor v)
Call corresponding visitor method(s). The order is: Call visitor methods of implemented interfaces first, then call methods according to the class hierarchy in descending order, i.e., the most specific visitXXX() call comes last.

Parameters: v Visitor object

dump

public void dump(DataOutputStream out)
Dump instruction as byte code to stream out.

Parameters: out Output stream

getIndex

public final int getIndex()

Returns: index of local variable containg the return address

getType

public Type getType(ConstantPoolGen cp)

Returns: return address type

initFromFile

protected void initFromFile(ByteSequence bytes, boolean wide)
Read needed data (e.g. index) from file.

setIndex

public final void setIndex(int n)
Set index of local variable containg the return address

toString

public String toString(boolean verbose)

Returns: mnemonic for instruction