View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.lang;
5   
6   import java.util.List;
7   
8   import net.sourceforge.pmd.lang.ast.Node;
9   import net.sourceforge.pmd.lang.dfa.DataFlowNode;
10  
11  public interface DataFlowHandler {
12  
13      DataFlowHandler DUMMY = new DataFlowHandler() {
14  	public DataFlowNode createDataFlowNode(List<DataFlowNode> dataFlow, Node node) {
15  	    return null;
16  	}
17  	public Class<? extends Node> getLabelStatementNodeClass() {
18  	    return null;
19  	}
20      };
21  
22      DataFlowNode createDataFlowNode(List<DataFlowNode> dataFlow, Node node);
23      Class<? extends Node> getLabelStatementNodeClass();
24  }