View Javadoc

    1   package net.sourceforge.pmd.lang.dfa.pathfinder;
    2
    3   import net.sourceforge.pmd.lang.dfa.DataFlowNode;
    4
    5   public class PathElement {
    6
    7       public int currentChild;
    8       public DataFlowNode node;
    9       public DataFlowNode pseudoRef;
    10
    11      PathElement(DataFlowNode node) {
    12          this.node = node;
    13      }
    14
    15      PathElement(DataFlowNode node, DataFlowNode ref) {
    16          this.node = node;
    17          this.pseudoRef = ref;
    18      }
    19
    20      public boolean isPseudoPathElement() {
    21          return pseudoRef != null;
    22      }
    23  }
    24