|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.classfile.AbstractInstructionAccessor
org.multijava.util.classfile.InstructionHandle
| Field Summary | |
private int |
index
|
private Instruction |
insn
|
private InstructionHandle |
next
|
private CodePosition |
position
|
private int |
stackHeight
|
| Constructor Summary | |
InstructionHandle(Instruction insn,
InstructionHandle prev)
Creates a new instruction handle. |
|
| Method Summary | |
void |
attachTo(AccessorContainer container)
Notifies this handle that is has been attached to the specified container. |
(package private) boolean |
checkInstruction(CodeEnv env,
int curStack)
Verifies the enclosed instruction and computes the stack height. |
(package private) void |
dump()
|
Instruction |
getInstruction()
Returns the enclosed instruction. |
(package private) int |
getLocalVar()
Returns the maximum index of local vars used by this instruction. |
InstructionHandle |
getNext()
Returns the handle of the next instruction in textual order. |
(package private) CodePosition |
getPosition()
Gets the position of current instruction |
(package private) int |
getStackHeight()
Returns the stack height after execution of this instruction. |
(package private) void |
setAddress()
Sets the final position of this instruction in the code array. |
(package private) boolean |
setAddressAndAdvancePC(CodePosition position)
Sets the position of this instruction and return true if address is final |
| Methods inherited from class org.multijava.util.classfile.AbstractInstructionAccessor |
transform |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final Instruction insn
private InstructionHandle next
private int index
private CodePosition position
private int stackHeight
| Constructor Detail |
public InstructionHandle(Instruction insn,
InstructionHandle prev)
insn - the instructionprev - the handle of the next instruction
in textual order| Method Detail |
public Instruction getInstruction()
public InstructionHandle getNext()
public void attachTo(AccessorContainer container)
CodePosition getPosition()
final int getStackHeight()
final int getLocalVar()
final boolean checkInstruction(CodeEnv env,
int curStack)
throws ClassFileFormatException
env - the check environmentcurStack - the stack height at the beginning
of the execution of the instruction
ClassFileFormatException - a problem was detectedboolean setAddressAndAdvancePC(CodePosition position)
void setAddress()
void dump()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||