|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjoeq.Compiler.BytecodeAnalysis.Bytecodes.InstructionHandle
public static class Bytecodes.InstructionHandle
| Method Summary | |
|---|---|
void |
accept(Bytecodes.Visitor v)
Convenience method, simply calls accept() on the contained instruction. |
void |
addAttribute(java.lang.Object key,
java.lang.Object attr)
Add an attribute to an instruction handle. |
void |
addTargeter(Bytecodes.InstructionTargeter t)
Denote this handle is being referenced by t. |
java.lang.Object |
getAttribute(java.lang.Object key)
Get attribute of an instruction handle. |
Bytecodes.Instruction |
getInstruction()
|
Bytecodes.InstructionHandle |
getNext()
|
int |
getPosition()
|
Bytecodes.InstructionHandle |
getPrev()
|
java.util.Set |
getTargeters()
|
boolean |
hasTargeters()
|
void |
removeAllTargeters()
Remove all targeters, if any. |
void |
removeAttribute(java.lang.Object key)
Delete an attribute of an instruction handle. |
void |
removeTargeter(Bytecodes.InstructionTargeter t)
Denote this handle isn't referenced anymore by t. |
void |
setInstruction(Bytecodes.Instruction i)
Replace current instruction contained in this handle. |
Bytecodes.Instruction |
swapInstruction(Bytecodes.Instruction i)
Temporarily swap the current instruction, without disturbing anything. |
java.lang.String |
toString()
|
java.lang.String |
toString(boolean verbose)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public final Bytecodes.InstructionHandle getNext()
public final Bytecodes.InstructionHandle getPrev()
public final Bytecodes.Instruction getInstruction()
public void setInstruction(Bytecodes.Instruction i)
public Bytecodes.Instruction swapInstruction(Bytecodes.Instruction i)
public int getPosition()
public void removeAllTargeters()
public void removeTargeter(Bytecodes.InstructionTargeter t)
public void addTargeter(Bytecodes.InstructionTargeter t)
public boolean hasTargeters()
public java.util.Set getTargeters()
public java.lang.String toString(boolean verbose)
public java.lang.String toString()
toString in class java.lang.Object
public void addAttribute(java.lang.Object key,
java.lang.Object attr)
key - the key object to store/retrieve the attributeattr - the attribute to associate with this handlepublic void removeAttribute(java.lang.Object key)
key - the key object to retrieve the attributepublic java.lang.Object getAttribute(java.lang.Object key)
key - the key object to store/retrieve the attributepublic void accept(Bytecodes.Visitor v)
v - Visitor object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||