public class RET extends Instruction implements IndexedInstruction, TypedInstruction
Stack: ... -> ...
length, opcode| Constructor and Description |
|---|
RET(int index) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor v)
Call corresponding visitor method(s).
|
void |
dump(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
|
String |
toString(boolean verbose)
Long output format:
<name of opcode> "["<opcode number>"]" "("<length of instruction>")"
|
consumeStack, copy, equals, getComparator, getLength, getName, getOpcode, hashCode, isValidByte, isValidShort, produceStack, readInstruction, setComparator, toString, toStringpublic RET(int index)
public void accept(Visitor v)
accept in class Instructionv - Visitor objectpublic void dump(DataOutputStream out) throws IOException
dump in class Instructionout - Output streamIOException - Thrown when an I/O exception of some sort has occurred.public final int getIndex()
getIndex in interface IndexedInstructionpublic Type getType(ConstantPoolGen cp)
getType in interface TypedInstructionprotected void initFromFile(ByteSequence bytes, boolean wide) throws IOException
initFromFile in class Instructionbytes - byte sequence to read fromwide - "wide" instruction flagIOException - may be thrown if the implementation needs to read data from the filepublic final void setIndex(int n)
setIndex in interface IndexedInstructionpublic String toString(boolean verbose)
InstructiontoString in class Instructionverbose - long/short format switchCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.