Package net.sourceforge.pmd.lang
Class AbstractLanguageVersionHandler
- java.lang.Object
-
- net.sourceforge.pmd.lang.AbstractLanguageVersionHandler
-
- All Implemented Interfaces:
LanguageVersionHandler
public abstract class AbstractLanguageVersionHandler extends java.lang.Object implements LanguageVersionHandler
This is a generic implementation of the LanguageVersionHandler interface.- See Also:
LanguageVersionHandler
-
-
Constructor Summary
Constructors Constructor Description AbstractLanguageVersionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description VisitorStartergetDataFlowFacade()Get the DataFlowFacade.DataFlowHandlergetDataFlowHandler()Get the DataFlowHandler.ParserOptionsgetDefaultParserOptions()Get the default ParserOptions.DFAGraphRulegetDFAGraphRule()VisitorStartergetDumpFacade(java.io.Writer writer, java.lang.String prefix, boolean recurse)Deprecated.LanguageMetricsProvider<?,?>getLanguageMetricsProvider()Returns the metrics provider for this language version, or null if it has none.VisitorStartergetMultifileFacade()Gets the visitor that performs multifile data gathering.VisitorStartergetQualifiedNameResolutionFacade(java.lang.ClassLoader classLoader)Gets the visitor that populates the qualified names of the nodes.VisitorStartergetSymbolFacade()Get the SymbolFacade.VisitorStartergetSymbolFacade(java.lang.ClassLoader classLoader)Get the SymbolFacade.VisitorStartergetTypeResolutionFacade(java.lang.ClassLoader classLoader)Get the TypeResolutionFacade.XPathHandlergetXPathHandler()Get the XPathHandler.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sourceforge.pmd.lang.LanguageVersionHandler
getParser, getRuleViolationFactory
-
-
-
-
Method Detail
-
getDataFlowHandler
public DataFlowHandler getDataFlowHandler()
Description copied from interface:LanguageVersionHandlerGet the DataFlowHandler.- Specified by:
getDataFlowHandlerin interfaceLanguageVersionHandler
-
getXPathHandler
public XPathHandler getXPathHandler()
Description copied from interface:LanguageVersionHandlerGet the XPathHandler.- Specified by:
getXPathHandlerin interfaceLanguageVersionHandler
-
getDefaultParserOptions
public ParserOptions getDefaultParserOptions()
Description copied from interface:LanguageVersionHandlerGet the default ParserOptions.- Specified by:
getDefaultParserOptionsin interfaceLanguageVersionHandler- Returns:
- ParserOptions
-
getDataFlowFacade
public VisitorStarter getDataFlowFacade()
Description copied from interface:LanguageVersionHandlerGet the DataFlowFacade.- Specified by:
getDataFlowFacadein interfaceLanguageVersionHandler- Returns:
- VisitorStarter
-
getSymbolFacade
public VisitorStarter getSymbolFacade()
Description copied from interface:LanguageVersionHandlerGet the SymbolFacade.- Specified by:
getSymbolFacadein interfaceLanguageVersionHandler- Returns:
- VisitorStarter
-
getSymbolFacade
public VisitorStarter getSymbolFacade(java.lang.ClassLoader classLoader)
Description copied from interface:LanguageVersionHandlerGet the SymbolFacade.- Specified by:
getSymbolFacadein interfaceLanguageVersionHandler- Parameters:
classLoader- A ClassLoader to use for resolving Types.- Returns:
- VisitorStarter
-
getTypeResolutionFacade
public VisitorStarter getTypeResolutionFacade(java.lang.ClassLoader classLoader)
Description copied from interface:LanguageVersionHandlerGet the TypeResolutionFacade.- Specified by:
getTypeResolutionFacadein interfaceLanguageVersionHandler- Parameters:
classLoader- A ClassLoader to use for resolving Types.- Returns:
- VisitorStarter
-
getDumpFacade
@Deprecated public VisitorStarter getDumpFacade(java.io.Writer writer, java.lang.String prefix, boolean recurse)
Deprecated.Description copied from interface:LanguageVersionHandlerGet the DumpFacade.- Specified by:
getDumpFacadein interfaceLanguageVersionHandler- Parameters:
writer- The writer to dump to.- Returns:
- VisitorStarter
-
getMultifileFacade
public VisitorStarter getMultifileFacade()
Description copied from interface:LanguageVersionHandlerGets the visitor that performs multifile data gathering.- Specified by:
getMultifileFacadein interfaceLanguageVersionHandler- Returns:
- The visitor starter
-
getQualifiedNameResolutionFacade
public VisitorStarter getQualifiedNameResolutionFacade(java.lang.ClassLoader classLoader)
Description copied from interface:LanguageVersionHandlerGets the visitor that populates the qualified names of the nodes.- Specified by:
getQualifiedNameResolutionFacadein interfaceLanguageVersionHandler- Parameters:
classLoader- The classloader to use to resolve the types of type qualified names- Returns:
- The visitor starter
-
getDFAGraphRule
public DFAGraphRule getDFAGraphRule()
- Specified by:
getDFAGraphRulein interfaceLanguageVersionHandler
-
getLanguageMetricsProvider
public LanguageMetricsProvider<?,?> getLanguageMetricsProvider()
Description copied from interface:LanguageVersionHandlerReturns the metrics provider for this language version, or null if it has none. Note: this is experimental, ie unstable until 7.0.0, after which it will probably be promoted to a stable API. For instance the return type will probably be changed to an Optional.- Specified by:
getLanguageMetricsProviderin interfaceLanguageVersionHandler
-
-