coins.aflow
Class DefUseCellImpl

java.lang.Object
  extended bycoins.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.


Nested Class Summary
 
Nested classes inherited from class coins.aflow.DefUseCell
DefUseCell.DefNode
 
Field Summary
(package private)  IR fDefNode
           
 FlowRoot flowRoot
           
(package private)  java.util.List fUseList
           
 
Fields inherited from interface coins.aflow.DefUseCell
PARAM, UNINITIALIZED
 
Constructor Summary
protected DefUseCellImpl(FlowRoot pFlowRoot, IR pDefNode)
           
 
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
 

Field Detail

flowRoot

public final FlowRoot flowRoot

fDefNode

IR fDefNode

fUseList

java.util.List fUseList
Constructor Detail

DefUseCellImpl

protected DefUseCellImpl(FlowRoot pFlowRoot,
                         IR pDefNode)
Method Detail

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()