|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
DefUseCell interface Def-use list cell representaing a definition and list of its use points. This interface does not take aliases into consideration.
| Nested Class Summary | |
static class |
DefUseCell.DefNode
|
| Field Summary | |
static IR |
PARAM
Indicates the (imaginary?) node that initializes the formal parameter. |
static IR |
UNINITIALIZED
Indicates that the variable may not have been set LOCALLY, i.e., within the subprogram, before used. |
| 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()). |
| Field Detail |
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).
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).
| Method Detail |
public IR getDefNode()
public java.util.List getUseList()
getDefNode()).
public void addUseNode(IR pUseNode)
pUseNode to the list of use nodes (returned by getUseList()).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||