coins.flow
Class DefUseChainImpl

java.lang.Object
  extended bycoins.flow.DefUseChainImpl
All Implemented Interfaces:
DefUseChain

public class DefUseChainImpl
extends java.lang.Object
implements DefUseChain

DefUseChainImpl class Def-use list chain representaing a definition and list of its use points.


Field Summary
protected  IR fDefNode
           
 FlowRoot flowRoot
           
protected  java.util.List fUseList
           
 
Constructor Summary
DefUseChainImpl(FlowRoot pFlowRoot, IR pDefNode)
           
 
Method Summary
 void addUseNode(IR pUseNode)
           
 IR getDefNode()
           
 Sym getDefSym()
           
 java.util.List getUseList()
           
 java.lang.String toStringByName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

flowRoot

public final FlowRoot flowRoot

fDefNode

protected IR fDefNode

fUseList

protected java.util.List fUseList
Constructor Detail

DefUseChainImpl

public DefUseChainImpl(FlowRoot pFlowRoot,
                       IR pDefNode)
Method Detail

getDefNode

public IR getDefNode()
Specified by:
getDefNode in interface DefUseChain

getUseList

public java.util.List getUseList()
Specified by:
getUseList in interface DefUseChain

addUseNode

public void addUseNode(IR pUseNode)
Specified by:
addUseNode in interface DefUseChain

getDefSym

public Sym getDefSym()

toStringByName

public java.lang.String toStringByName()
Specified by:
toStringByName in interface DefUseChain