public class InstructionHandle
extends java.lang.Object
implements java.io.Serializable
Instruction
,
BranchHandle
,
InstructionList
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected int |
pos |
Modifier | Constructor and Description |
---|---|
protected |
InstructionHandle(Instruction i) |
Modifier and Type | Method and Description |
---|---|
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) |
protected InstructionHandle(Instruction i)
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