net.sourceforge.pmd.dfa

Class DataFlowNode

public class DataFlowNode extends Object implements IDataFlowNode

Author: raik

Each data flow contains a set of DataFlowNodes.

Field Summary
protected List<DataFlowNode>children
protected LinkedList<DataFlowNode>dataFlow
protected intline
protected List<DataFlowNode>parents
protected BitSettype
protected List<VariableAccess>variableAccess
Constructor Summary
protected DataFlowNode()
DataFlowNode(SimpleNode node, LinkedList<DataFlowNode> dataFlow)
Method Summary
voidaddPathToChild(IDataFlowNode child)
List<DataFlowNode>getChildren()
List<DataFlowNode>getFlow()
intgetIndex()
intgetLine()
List<DataFlowNode>getParents()
SimpleNodegetSimpleNode()
List<VariableAccess>getVariableAccess()
booleanisType(int intype)
booleanremovePathToChild(IDataFlowNode child)
voidreverseParentPathsTo(IDataFlowNode destination)
voidsetType(int type)
voidsetVariableAccess(List<VariableAccess> variableAccess)
StringtoString()

Field Detail

children

protected List<DataFlowNode> children

dataFlow

protected LinkedList<DataFlowNode> dataFlow

line

protected int line

parents

protected List<DataFlowNode> parents

type

protected BitSet type

variableAccess

protected List<VariableAccess> variableAccess

Constructor Detail

DataFlowNode

protected DataFlowNode()

DataFlowNode

public DataFlowNode(SimpleNode node, LinkedList<DataFlowNode> dataFlow)

Method Detail

addPathToChild

public void addPathToChild(IDataFlowNode child)

getChildren

public List<DataFlowNode> getChildren()

getFlow

public List<DataFlowNode> getFlow()

getIndex

public int getIndex()

getLine

public int getLine()

getParents

public List<DataFlowNode> getParents()

getSimpleNode

public SimpleNode getSimpleNode()

getVariableAccess

public List<VariableAccess> getVariableAccess()

isType

public boolean isType(int intype)

removePathToChild

public boolean removePathToChild(IDataFlowNode child)

reverseParentPathsTo

public void reverseParentPathsTo(IDataFlowNode destination)

setType

public void setType(int type)

setVariableAccess

public void setVariableAccess(List<VariableAccess> variableAccess)

toString

public String toString()