|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.aspectj.apache.bcel.generic.InstructionHandle
public class InstructionHandle
Instances of this class give users a handle to the instructions contained in an InstructionList. Instruction objects may be used more than once within a list, this is useful because it saves memory and may be much faster. Within an InstructionList an InstructionHandle object is wrapped around all instructions, i.e., it implements a cell in a doubly-linked list. From the outside only the next and the previous instruction (handle) are accessible. One can traverse the list via an Enumeration returned by InstructionList.elements().
Instruction
,
BranchHandle
,
InstructionList
,
Serialized FormField Summary | |
---|---|
protected int |
pos
|
Constructor Summary | |
---|---|
protected |
InstructionHandle(Instruction i)
|
Method Summary | |
---|---|
void |
addTargeter(InstructionTargeter t)
Denote this handle is being referenced by t. |
Instruction |
getInstruction()
|
InstructionHandle |
getNext()
|
int |
getPosition()
|
InstructionHandle |
getPrev()
|
java.util.Set<InstructionTargeter> |
getTargeters()
|
java.util.Set<InstructionTargeter> |
getTargetersCopy()
|
boolean |
hasTargeters()
|
void |
removeAllTargeters()
Remove all targeters, if any. |
void |
removeTargeter(InstructionTargeter t)
Denote this handle isn't referenced anymore by t. |
void |
setInstruction(Instruction i)
Replace current instruction contained in this handle. |
java.lang.String |
toString()
|
java.lang.String |
toString(boolean verbose)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int pos
Constructor Detail |
---|
protected InstructionHandle(Instruction i)
Method Detail |
---|
public final InstructionHandle getNext()
public final InstructionHandle getPrev()
public final Instruction getInstruction()
public void setInstruction(Instruction i)
public int getPosition()
public void removeAllTargeters()
public void removeTargeter(InstructionTargeter t)
public void addTargeter(InstructionTargeter t)
public boolean hasTargeters()
public java.util.Set<InstructionTargeter> getTargeters()
public java.util.Set<InstructionTargeter> getTargetersCopy()
public java.lang.String toString(boolean verbose)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |