|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.classfile.AbstractInstructionAccessor
at.dms.classfile.Instruction
public abstract class Instruction
Root class for instructions. An instruction is defined by its opcode and its arguments.
Field Summary |
---|
Constructor Summary | |
---|---|
Instruction(int opcode)
Constructs a new instruction |
Method Summary | |
---|---|
abstract boolean |
canComplete()
Returns true iff control flow can reach the next instruction in textual order after executing this instruction. |
void |
dump()
|
int |
getOpcode()
Returns the opcode of the instruction |
int |
getPoppedFromStack()
Returns the size of data pushed on the stack by this instruction |
abstract int |
getPushedOnStack()
Returns the size of data pushed on the stack by this instruction |
abstract byte |
getReturnType()
Returns the type pushed on the stack |
abstract int |
getStack()
Returns the amount of stack (positive or negative) used by this instruction. |
boolean |
isLiteral()
Returns true iff this instruction is a literal. |
Methods inherited from class at.dms.classfile.AbstractInstructionAccessor |
---|
deepClone, deepCloneInto, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Instruction(int opcode)
opcode
- the opcode of the instructionMethod Detail |
---|
public final int getOpcode()
public abstract byte getReturnType()
public abstract int getStack()
public abstract int getPushedOnStack()
public final int getPoppedFromStack()
public boolean isLiteral()
public abstract boolean canComplete()
public void dump()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |