|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--at.dms.classfile.AbstractInstructionAccessor | +--at.dms.classfile.InstructionHandle
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 at.dms.classfile.AbstractInstructionAccessor |
transform |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public InstructionHandle(Instruction insn, InstructionHandle prev)
insn
- the instructionprev
- the handle of the next instruction
in textual orderMethod 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 instructionClassFileFormatException
- a problem was detectedboolean setAddressAndAdvancePC(CodePosition position)
void setAddress()
void dump()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |