01: package net.sourceforge.pmd.dfa.pathfinder;
02:
03: import net.sourceforge.pmd.dfa.IDataFlowNode;
04:
05: public class PathElement {
06:
07: public int currentChild;
08: public IDataFlowNode node;
09: public IDataFlowNode pseudoRef;
10:
11: PathElement(IDataFlowNode node) {
12: this .node = node;
13: }
14:
15: PathElement(IDataFlowNode node, IDataFlowNode ref) {
16: this .node = node;
17: this .pseudoRef = ref;
18: }
19:
20: public boolean isPseudoPathElement() {
21: return pseudoRef != null;
22: }
23: }
|