de.fub.bytecode.generic
Class RET
java.lang.Object
|
+--de.fub.bytecode.generic.Instruction
|
+--de.fub.bytecode.generic.RET
- public class RET
- extends Instruction
RET - Return from subroutine
Stack: ..., -> ..., address
- Version:
- $Id: RET.java,v 1.7 1999/05/04 13:14:48 dahm Exp $
- Author:
- M. Dahm
- See Also:
- Serialized Form
Constructor Summary |
RET(int index)
|
Method Summary |
void |
dump(java.io.DataOutputStream out)
Dump instruction as byte code to stream out. |
int |
getIndex()
|
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 |
java.lang.String |
toString(boolean verbose)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
RET
public RET(int index)
dump
public void dump(java.io.DataOutputStream out)
throws java.io.IOException
- Dump instruction as byte code to stream out.
- Parameters:
out
- Output stream- Overrides:
- dump in class Instruction
initFromFile
protected void initFromFile(ByteSequence bytes,
boolean wide)
throws java.io.IOException
- Read needed data (e.g. index) from file.
- Overrides:
- initFromFile in class Instruction
getIndex
public final int getIndex()
- Returns:
- index of local variable containg the return address
setIndex
public final void setIndex(int n)
- Set index of local variable containg the return address
toString
public java.lang.String toString(boolean verbose)
- Returns:
- mnemonic for instruction
- Overrides:
- toString in class Instruction