|
||||||||||
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.optimize.InstructionHandle
Constructor Summary | |
InstructionHandle(Instruction instruction,
InstructionHandle prev)
Creates a new instruction handle. |
Method Summary | |
void |
addAccessor(AccessorContainer accessor)
|
void |
addLineNumberInfo(java.util.List lineNumberInfo)
Adds line number info stored for the instruction to the specified list. |
void |
attachTo(AccessorContainer container)
Notifies this handle that is has been attached to the specified container. |
void |
clean()
reset |
void |
destroy()
destroy |
AccessorContainer |
getAccessor(int i)
|
Instruction |
getInstruction()
Returns the enclosed instruction. |
JumpInstruction |
getJump()
Returns the instruction as a Jump instruction. |
LocalVarInstruction |
getLocal()
Returns the instruction as a Jump instruction. |
InstructionHandle |
getNext()
Returns the handle of the next instruction in textual order. |
int |
getOpcode()
Returns the target of this jump instruction. |
InstructionHandle |
getPrevious()
Returns the handle of the next instruction in textual order. |
InstructionHandle |
getTarget()
Returns the target of this jump instruction. |
boolean |
isJump()
Returns true if this instruction is a jump instruction. |
boolean |
isReached()
isReached |
boolean |
isTarget()
isTarget |
boolean |
remove()
destroy |
void |
removeAccessor(AccessorContainer accessor)
|
void |
removeAccessors()
|
void |
replaceBy(Instruction instruction)
replaceBy |
void |
replaceBy(Instruction[] instructions)
replaceBy |
void |
reset()
reset |
void |
set()
isReached |
void |
setNext(InstructionHandle next)
Sets the handle of the next instruction in textual order. |
void |
setTarget(InstructionHandle target)
Returns the target of this jump instruction. |
Methods inherited from class at.dms.classfile.AbstractInstructionAccessor |
transform |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public InstructionHandle(Instruction instruction, InstructionHandle prev)
instruction
- the instructionprev
- the handle of the next instruction
in textual orderMethod Detail |
public void attachTo(AccessorContainer container)
public void addLineNumberInfo(java.util.List lineNumberInfo)
public Instruction getInstruction()
public InstructionHandle getNext()
public InstructionHandle getPrevious()
public boolean isJump()
public JumpInstruction getJump()
public LocalVarInstruction getLocal()
public InstructionHandle getTarget()
public void setTarget(InstructionHandle target)
public int getOpcode()
public void setNext(InstructionHandle next)
public boolean isReached()
public boolean isTarget()
public void set()
public void destroy()
public boolean remove()
public void reset()
public void clean()
public void replaceBy(Instruction instruction)
public void replaceBy(Instruction[] instructions)
public void addAccessor(AccessorContainer accessor)
public AccessorContainer getAccessor(int i)
public void removeAccessor(AccessorContainer accessor)
public void removeAccessors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |