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 Listchildren
protected LinkedListdataFlow
protected intline
protected Listparents
protected BitSettype
protected ListvariableAccess
Constructor Summary
protected DataFlowNode()
DataFlowNode(SimpleNode node, LinkedList dataFlow)
Method Summary
voidaddPathToChild(IDataFlowNode child)
ListgetChildren()
ListgetFlow()
intgetIndex()
intgetLine()
ListgetParents()
SimpleNodegetSimpleNode()
ListgetVariableAccess()
booleanisType(int intype)
booleanremovePathToChild(IDataFlowNode child)
voidreverseParentPathsTo(IDataFlowNode destination)
voidsetType(int type)
voidsetVariableAccess(List variableAccess)
StringtoString()

Field Detail

children

protected List children

dataFlow

protected LinkedList dataFlow

line

protected int line

parents

protected List parents

type

protected BitSet type

variableAccess

protected List variableAccess

Constructor Detail

DataFlowNode

protected DataFlowNode()

DataFlowNode

public DataFlowNode(SimpleNode node, LinkedList dataFlow)

Method Detail

addPathToChild

public void addPathToChild(IDataFlowNode child)

getChildren

public List getChildren()

getFlow

public List getFlow()

getIndex

public int getIndex()

getLine

public int getLine()

getParents

public List getParents()

getSimpleNode

public SimpleNode getSimpleNode()

getVariableAccess

public List 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)

toString

public String toString()