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.io.Writer;
7   
8   import net.sourceforge.pmd.lang.dfa.DFAGraphRule;
9   
10  /**
11   * This is a generic implementation of the LanguageVersionHandler interface.
12   * 
13   * @see LanguageVersionHandler
14   */
15  public abstract class AbstractLanguageVersionHandler implements LanguageVersionHandler {
16  
17      public DataFlowHandler getDataFlowHandler() {
18  	return DataFlowHandler.DUMMY;
19      }
20  
21      public XPathHandler getXPathHandler() {
22  	return XPathHandler.DUMMY;
23      }
24  
25      public ParserOptions getDefaultParserOptions() {
26  	return new ParserOptions();
27      }
28  
29      public VisitorStarter getDataFlowFacade() {
30  	return VisitorStarter.DUMMY;
31      }
32  
33      public VisitorStarter getSymbolFacade() {
34  	return VisitorStarter.DUMMY;
35      }
36  
37      @Override
38      public VisitorStarter getSymbolFacade(ClassLoader classLoader) {
39          return VisitorStarter.DUMMY;
40      }
41  
42      public VisitorStarter getTypeResolutionFacade(ClassLoader classLoader) {
43  	return VisitorStarter.DUMMY;
44      }
45  
46      public VisitorStarter getDumpFacade(final Writer writer, final String prefix, final boolean recurse) {
47  	return VisitorStarter.DUMMY;
48      }
49  
50      public DFAGraphRule getDFAGraphRule() {
51          return null;
52      }
53  }