|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.aflow.IrAdapter
coins.aflow.DefUseCell.DefNode
| Field Summary | |
(package private) java.lang.String |
fKind
|
| Fields inherited from interface coins.ir.IR |
OP_CODE_NAME, OP_INF, OP_LIST, OP_PROG, OP_SUBP_DEF |
| Constructor Summary | |
(package private) |
DefUseCell.DefNode(java.lang.String pKind)
|
| Method Summary | |
void |
addInf(java.lang.String pInfIdInterned,
java.lang.Object pInfObject)
addInf Add (attach) information pInfObject to this IR node. |
void |
attachInf(IR pNode)
|
IR |
buildNode(int pOperator)
|
IR |
buildNode(int pOperator,
IR pSource1)
|
IR |
buildNode(int pOperator,
IR pSource1,
IR pSource2)
|
IR |
buildSymNode(Sym pSym)
|
boolean |
equals(java.lang.Object pObj)
|
IR |
getChild(int pNumber)
getChild |
IR |
getChild1()
getChild1 Get the first child of this node. |
IR |
getChild2()
getChild2 Get the second child of this node. |
int |
getChildCount()
getChildCount Get the number of children that may be attached to this node. |
FlowAnalSym |
getFlowAnalSym()
|
java.lang.String |
getIndentSpace(int pIndent)
|
int |
getIndex()
getIndex Get the index number assigned to "this" node. |
java.lang.Object |
getInf(java.lang.String pInfIdInterned)
getInf Get the information of the kind pInfKindInterned. |
IrList |
getInfList()
getInfList Get the information list attached to this node. |
IrList |
getInfList(java.lang.String pString)
|
IR |
getInfNode()
|
java.lang.String |
getInfString()
|
java.lang.String |
getInfString(java.lang.String pString)
|
java.lang.String |
getIrName()
|
int |
getOperator()
getOperator Get operation code of "this" node. |
IR |
getParent()
getParent Get the parent of this node. |
Sym |
getResultOperand()
|
Sym |
getResultVar()
|
IR |
getSourceNode(int pNumber)
|
IR |
getSourceNode1()
|
IR |
getSourceNode2()
|
Sym |
getSym()
getSym Get the symbol represented by "this" node if this is a node representing a symbol (simple variable, element/field name, subprogram, label, constant, etc.). |
java.lang.Object |
getWork()
|
int |
hashCode()
|
void |
print(int pIndent)
print Print this subtree in text format traversing all children of this node. |
void |
print(int pIndent,
boolean pDetail)
print Print this subtree in text format traversing all children of this node. |
void |
removeInf(java.lang.String pInfIdInterned)
removeInf Remove the information of the kind pInfKindInterned. |
void |
replaceOperator(int pOperator)
|
void |
replaceResultOperand(IR pOperand)
|
void |
replaceResultVar(IR pOperand)
|
void |
replaceSource(int pNumber,
IR pOperand)
|
void |
replaceSource1(IR pOperand)
|
void |
replaceSource2(IR pOperand)
|
void |
replaceThisNode(IR pNewNode)
|
void |
setChild(int pNumber,
IR pIr)
setChild Set pHir as pNumber-th child of this node. |
void |
setChild1(IR p1)
|
void |
setChild2(IR p2)
|
void |
setIndex(int pIndex)
|
void |
setInfList(java.lang.String pInfIdInterned,
IrList pInfList)
|
void |
setInfString(java.lang.String pInfIdInterned,
java.lang.String pInfString)
|
void |
setParent(IR pParent)
|
void |
setWork(java.lang.Object pObject)
|
java.lang.String |
toString()
|
java.lang.String |
toStringShort()
setChild Set pHir as pNumber-th child of this node. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
java.lang.String fKind
| Constructor Detail |
DefUseCell.DefNode(java.lang.String pKind)
| Method Detail |
public int hashCode()
public boolean equals(java.lang.Object pObj)
public java.lang.String toString()
public void replaceSource2(IR pOperand)
public IR buildNode(int pOperator)
public IR getChild1()
IR
getChild1 in interface IRpublic void replaceSource1(IR pOperand)
public void replaceOperator(int pOperator)
public void setChild2(IR p2)
public java.lang.String getIndentSpace(int pIndent)
public void replaceResultVar(IR pOperand)
public void setChild1(IR p1)
public Sym getSym()
IR
getSym in interface IRpublic IR getSourceNode(int pNumber)
public void setParent(IR pParent)
public IR getSourceNode2()
public IR getSourceNode1()
public IR buildNode(int pOperator,
IR pSource1)
public IR buildNode(int pOperator,
IR pSource1,
IR pSource2)
public int getChildCount()
IR0
getChildCount in interface IR0public int getOperator()
IR0
getOperator in interface IR0public void print(int pIndent)
IR
print in interface IRpIndent - number of heading spaces for indentation.
public void replaceSource(int pNumber,
IR pOperand)
public java.lang.String getIrName()
public Sym getResultVar()
public IR getInfNode()
public IR buildSymNode(Sym pSym)
public void setIndex(int pIndex)
public void attachInf(IR pNode)
public IR getParent()
IR
getParent in interface IR
public void print(int pIndent,
boolean pDetail)
IR
print in interface IRpIndent - number of heading spaces for indentation.pDetail - true if detail print is requested, false otherwise.public void replaceThisNode(IR pNewNode)
public void setChild(int pNumber,
IR pIr)
IR0
setChild in interface IR0pNumber - Child numberpublic int getIndex()
IR0
getIndex in interface IR0public IR getChild(int pNumber)
IR0
getChild in interface IR0pNumber - the child number of the child to be returned.
public IR getChild2()
IR
getChild2 in interface IR
public void setInfList(java.lang.String pInfIdInterned,
IrList pInfList)
public void setInfString(java.lang.String pInfIdInterned,
java.lang.String pInfString)
public void addInf(java.lang.String pInfIdInterned,
java.lang.Object pInfObject)
IR
addInf in interface IRpInfObject - Object to be added as information.
It may be String, Sym, IR, List, and so on,
hence they may be non-IR elements.public IrList getInfList()
IR
getInfList in interface IRpublic IrList getInfList(java.lang.String pString)
public java.lang.String getInfString()
public java.lang.String getInfString(java.lang.String pString)
public java.lang.Object getInf(java.lang.String pInfIdInterned)
IR
getInf in interface IRpublic void removeInf(java.lang.String pInfIdInterned)
IR
removeInf in interface IRpublic FlowAnalSym getFlowAnalSym()
public Sym getResultOperand()
public void replaceResultOperand(IR pOperand)
public void setWork(java.lang.Object pObject)
public java.lang.Object getWork()
public java.lang.String toStringShort()
IR
toStringShort in interface IR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||