VisitorStarter.java
01 package net.sourceforge.pmd.lang;
02 
03 import net.sourceforge.pmd.lang.ast.Node;
04 
05 /**
06  * Interface for starting an implementation of the visitors for ASTs.
07  *
08  @author pieter_van_raemdonck - Application Engineers NV/SA - www.ae.be
09  */
10 public interface VisitorStarter {
11 
12     VisitorStarter DUMMY = new VisitorStarter() {
13   public void start(Node rootNode) {
14   }
15     };
16 
17     /**
18      * Start the visitor, given the root-node of the AST.
19      *
20      @param rootNode The root node of the AST
21      */
22     void start(Node rootNode);
23 }