View Javadoc

    1   /**
    2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
    3    */
    4   package net.sourceforge.pmd.lang.dfa;
    5
    6   import java.util.List;
    7
    8
    9   public class StartOrEndDataFlowNode extends AbstractDataFlowNode {
    10
    11      private boolean isStartNode;
    12
    13      public StartOrEndDataFlowNode(List<DataFlowNode> dataFlow, int line, boolean isStartNode) {
    14  	super(dataFlow);
    15  	this.line = line;
    16  	this.isStartNode = isStartNode;
    17      }
    18
    19      public String toString() {
    20  	return isStartNode ? "Start node" : "End node";
    21      }
    22  }