net.sourceforge.pmd.dfa
Class DataFlowNode
java.lang.Object
extended by net.sourceforge.pmd.dfa.DataFlowNode
- All Implemented Interfaces:
- IDataFlowNode
- Direct Known Subclasses:
- StartOrEndDataFlowNode
public class DataFlowNode
- extends java.lang.Object
- implements IDataFlowNode
- Author:
- raik
Each data flow contains a set of DataFlowNodes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
parents
protected java.util.List<DataFlowNode> parents
children
protected java.util.List<DataFlowNode> children
type
protected java.util.BitSet type
variableAccess
protected java.util.List<VariableAccess> variableAccess
dataFlow
protected java.util.LinkedList<DataFlowNode> dataFlow
line
protected int line
DataFlowNode
protected DataFlowNode()
DataFlowNode
public DataFlowNode(SimpleNode node,
java.util.LinkedList<DataFlowNode> dataFlow)
addPathToChild
public void addPathToChild(IDataFlowNode child)
- Specified by:
addPathToChild
in interface IDataFlowNode
-
removePathToChild
public boolean removePathToChild(IDataFlowNode child)
- Specified by:
removePathToChild
in interface IDataFlowNode
-
reverseParentPathsTo
public void reverseParentPathsTo(IDataFlowNode destination)
- Specified by:
reverseParentPathsTo
in interface IDataFlowNode
-
getLine
public int getLine()
- Specified by:
getLine
in interface IDataFlowNode
-
setType
public void setType(int type)
-
-
isType
public boolean isType(int intype)
- Specified by:
isType
in interface IDataFlowNode
-
getSimpleNode
public SimpleNode getSimpleNode()
- Specified by:
getSimpleNode
in interface IDataFlowNode
-
getChildren
public java.util.List<DataFlowNode> getChildren()
- Specified by:
getChildren
in interface IDataFlowNode
-
getParents
public java.util.List<DataFlowNode> getParents()
- Specified by:
getParents
in interface IDataFlowNode
-
getFlow
public java.util.List<DataFlowNode> getFlow()
- Specified by:
getFlow
in interface IDataFlowNode
-
getIndex
public int getIndex()
- Specified by:
getIndex
in interface IDataFlowNode
-
setVariableAccess
public void setVariableAccess(java.util.List<VariableAccess> variableAccess)
- Specified by:
setVariableAccess
in interface IDataFlowNode
-
getVariableAccess
public java.util.List<VariableAccess> getVariableAccess()
- Specified by:
getVariableAccess
in interface IDataFlowNode
-
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
-
Copyright © 2002-2011 InfoEther. All Rights Reserved.