01: package net.sourceforge.pmd.dfa;
02:
03: import net.sourceforge.pmd.ast.SimpleNode;
04: import net.sourceforge.pmd.dfa.variableaccess.VariableAccess;
05:
06: import java.util.List;
07:
08: public interface IDataFlowNode {
09: List<VariableAccess> getVariableAccess();
10:
11: int getLine();
12:
13: int getIndex();
14:
15: boolean isType(int type);
16:
17: List<? extends IDataFlowNode> getChildren();
18:
19: List<? extends IDataFlowNode> getParents();
20:
21: List<? extends IDataFlowNode> getFlow();
22:
23: SimpleNode getSimpleNode();
24:
25: void setVariableAccess(List<VariableAccess> variableAccess);
26:
27: void addPathToChild(IDataFlowNode child);
28:
29: boolean removePathToChild(IDataFlowNode child);
30:
31: void reverseParentPathsTo(IDataFlowNode destination);
32:
33: }
|