coins.aflow
Class DefUseCellImpl
java.lang.Object
coins.aflow.DefUseCellImpl
- All Implemented Interfaces:
- DefUseCell
- public class DefUseCellImpl
- extends java.lang.Object
- implements DefUseCell
DefUseCellImpl class:
Def-use list cell representaing
a definition and list of its use points.
|
Method Summary |
void |
addUseNode(IR pUseNode)
Adds pUseNode to the list of use nodes (returned by getUseList()). |
IR |
getDefNode()
Returns the node (def node of this DefUseCell) that sets the value for the symbol this DefUseCell is associated with. |
java.util.List |
getUseList()
Returns the list of nodes that may use the value set at the def node (returned by getDefNode()). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
flowRoot
public final FlowRoot flowRoot
fDefNode
IR fDefNode
fUseList
java.util.List fUseList
DefUseCellImpl
protected DefUseCellImpl(FlowRoot pFlowRoot,
IR pDefNode)
getDefNode
public IR getDefNode()
- Description copied from interface:
DefUseCell
- Returns the node (def node of this DefUseCell) that sets the value for the symbol this DefUseCell is associated with. The node returned is an HIR AssignStmt node or LIR SET node or formal parameter node (PARAM) or node that signifies the symbol is uninitialed (UNINITIALIZED).
- Specified by:
getDefNode in interface DefUseCell
getUseList
public java.util.List getUseList()
- Description copied from interface:
DefUseCell
- Returns the list of nodes that may use the value set at the def node (returned by
getDefNode()).
- Specified by:
getUseList in interface DefUseCell
addUseNode
public void addUseNode(IR pUseNode)
- Description copied from interface:
DefUseCell
- Adds
pUseNode to the list of use nodes (returned by getUseList()).
- Specified by:
addUseNode in interface DefUseCell
toString
public java.lang.String toString()