net.sourceforge.pmd.dfa
Class DataFlowNode
java.lang.Object
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 parents
children
protected java.util.List children
type
protected java.util.BitSet type
variableAccess
protected java.util.List variableAccess
dataFlow
protected java.util.LinkedList dataFlow
line
protected int line
DataFlowNode
protected DataFlowNode()
DataFlowNode
public DataFlowNode(SimpleNode node,
java.util.LinkedList 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 getChildren()
- Specified by:
getChildren
in interface IDataFlowNode
getParents
public java.util.List getParents()
- Specified by:
getParents
in interface IDataFlowNode
getFlow
public java.util.List 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)
- Specified by:
setVariableAccess
in interface IDataFlowNode
getVariableAccess
public java.util.List getVariableAccess()
- Specified by:
getVariableAccess
in interface IDataFlowNode
toString
public java.lang.String toString()
Copyright © 2002-2006 InfoEther. All Rights Reserved.