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 public VisitorStarter getTypeResolutionFacade(ClassLoader classLoader) { 38 return VisitorStarter.DUMMY; 39 } 40 41 public VisitorStarter getDumpFacade(final Writer writer, final String prefix, final boolean recurse) { 42 return VisitorStarter.DUMMY; 43 } 44 45 public DFAGraphRule getDFAGraphRule() { 46 return null; 47 } 48 }