org.apache.bcel.generic
public class RET extends Instruction implements IndexedInstruction, TypedInstruction
Stack: ... -> ...
Modifier and Type | Field and Description |
---|---|
private int |
index |
private boolean |
wide |
length, opcode
Constructor and Description |
---|
RET()
Empty constructor needed for the Class.newInstance() statement in
Instruction.readInstruction().
|
RET(int index) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
void |
dump(java.io.DataOutputStream out)
Dump instruction as byte code to stream out.
|
int |
getIndex() |
Type |
getType(ConstantPoolGen cp) |
protected void |
initFromFile(ByteSequence bytes,
boolean wide)
Read needed data (e.g.
|
void |
setIndex(int n)
Set index of local variable containg the return address
|
private void |
setWide() |
java.lang.String |
toString(boolean verbose)
Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")"
|
consumeStack, copy, dispose, equals, getComparator, getLength, getName, getOpcode, produceStack, readInstruction, setComparator, toString, toString
RET()
public RET(int index)
public void dump(java.io.DataOutputStream out) throws java.io.IOException
dump
in class Instruction
out
- Output streamjava.io.IOException
private final void setWide()
protected void initFromFile(ByteSequence bytes, boolean wide) throws java.io.IOException
initFromFile
in class Instruction
bytes
- byte sequence to read fromwide
- "wide" instruction flagjava.io.IOException
public final int getIndex()
getIndex
in interface IndexedInstruction
public final void setIndex(int n)
setIndex
in interface IndexedInstruction
public java.lang.String toString(boolean verbose)
Instruction
toString
in class Instruction
verbose
- long/short format switchpublic Type getType(ConstantPoolGen cp)
getType
in interface TypedInstruction
public void accept(Visitor v)
accept
in class Instruction
v
- Visitor object