|
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.backend.InstructionHandle
| Field Summary | |
private ArrayList |
accessors
|
private Instruction |
insn
|
private ArrayList |
lineNumbers
|
private InstructionHandle |
next
|
private InstructionHandle |
prev
|
private boolean |
reached
|
| Constructor Summary | |
InstructionHandle(Instruction insn,
InstructionHandle prev)
Creates a new instruction handle. |
|
| Method Summary | |
void |
addAccessor(AccessorContainer accessor)
|
void |
addLineNumberInfo(ArrayList 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. |
private void |
changeTarget(AccessorContainer container,
InstructionHandle target)
|
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 |
(package private) static int |
getTypeSize(int type)
|
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 |
private void |
notifyTargetOnAdd()
|
private void |
notifyTargetOnRemove()
|
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 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 Instruction insn
private boolean reached
private InstructionHandle prev
private InstructionHandle next
private ArrayList lineNumbers
private ArrayList accessors
| Constructor Detail |
public InstructionHandle(Instruction insn,
InstructionHandle prev)
insn - the instructionprev - the handle of the next instruction
in textual order| Method Detail |
public void attachTo(AccessorContainer container)
public void addLineNumberInfo(ArrayList 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()
static int getTypeSize(int type)
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()
private void notifyTargetOnRemove()
private void notifyTargetOnAdd()
private void changeTarget(AccessorContainer container,
InstructionHandle target)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||