View Javadoc

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