|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.dms.classfile.AbstractInstructionAccessor
at.dms.backend.InstructionHandle
public class InstructionHandle
Field Summary |
---|
Constructor Summary | |
---|---|
InstructionHandle(Instruction insn,
InstructionHandle prev)
Creates a new instruction handle. |
Method Summary | |
---|---|
void |
addAccessor(AccessorContainer accessor)
|
void |
addLineNumberInfo(Vector lineNumberInfo)
Adds line number info stored for the instruction to the specified vector. |
void |
attachTo(AccessorContainer container)
Notifies this handle that is has been attached to the specified container. |
void |
clean()
reset |
int |
countOperands()
|
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 |
hasReturnValue()
|
boolean |
isDup()
|
boolean |
isDupX2()
|
boolean |
isJump()
Returns true if this instruction is a jump instruction |
boolean |
isPop()
|
boolean |
isReached()
isReached |
boolean |
isSwap()
|
boolean |
isTarget()
isTarget |
boolean |
remove()
destroy |
void |
removeAccessor(AccessorContainer accessor)
|
void |
removeAccessors()
|
void |
replaceBy(Instruction insn)
replaceBy |
void |
replaceBy(Instruction[] insns)
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 |
---|
deepClone, deepCloneInto, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstructionHandle(Instruction insn, InstructionHandle prev)
insn
- the instructionprev
- the handle of the next instruction
in textual orderMethod Detail |
---|
public void attachTo(AccessorContainer container)
public void addLineNumberInfo(Vector 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 boolean hasReturnValue()
public int countOperands()
public boolean isPop()
public boolean isDup()
public boolean isDupX2()
public boolean isSwap()
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 insn)
public void replaceBy(Instruction[] insns)
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |