coins.aflow
インタフェース DefUseCell

既知の実装クラスの一覧:
DefUseCellImpl

public interface DefUseCell

DefUseCell interface Def-use list cell representaing a definition and list of its use points. This interface does not take aliases into consideration.


入れ子クラスの概要
static class DefUseCell.DefNode
           
 
フィールドの概要
static IR PARAM
          Indicates the (imaginary?)
static IR UNINITIALIZED
          Indicates that the variable may not have been set LOCALLY, i.e., within the subprogram, before used.
 
メソッドの概要
 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()).
 

フィールドの詳細

UNINITIALIZED

public static final IR UNINITIALIZED

Indicates that the variable may not have been set LOCALLY, i.e., within the subprogram, before used. This may be returned by getDefNode. The name "UNINITIALIZED" may be misleading, since external variables may have already been initialized outside of the scope of this analysis (SubpFlow).

Please note that this is not a full-featured "IR node", and call to most of the methods in IR interface will fail (UnsupportedOperationException thrown).


PARAM

public static final IR PARAM

Indicates the (imaginary?) node that initializes the formal parameter. This may be returned by getDefNode().

Please note that this is not a full-featured "IR node", and call to most of the methods in IR interface will fail (UnsupportedOperationException thrown).

メソッドの詳細

getDefNode

public IR getDefNode()
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).


getUseList

public java.util.List getUseList()
Returns the list of nodes that may use the value set at the def node (returned by getDefNode()).


addUseNode

public void addUseNode(IR pUseNode)
Adds pUseNode to the list of use nodes (returned by getUseList()).