1 /** 2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html 3 */ 4 package net.sourceforge.pmd.lang.dfa.pathfinder; 5 6 import net.sourceforge.pmd.lang.dfa.DataFlowNode; 7 8 public class PathElement { 9 10 public int currentChild; 11 public DataFlowNode node; 12 public DataFlowNode pseudoRef; 13 14 PathElement(DataFlowNode node) { 15 this.node = node; 16 } 17 18 PathElement(DataFlowNode node, DataFlowNode ref) { 19 this.node = node; 20 this.pseudoRef = ref; 21 } 22 23 public boolean isPseudoPathElement() { 24 return pseudoRef != null; 25 } 26 } 27