Package net.sourceforge.pmd.lang
Interface LanguageVersionHandler
-
- All Known Implementing Classes:
AbstractLanguageVersionHandler
public interface LanguageVersionHandlerInterface for obtaining the classes necessary for checking source files of a specific language. Note: "façade" getters likegetSymbolFacade()will be removed with 7.0.0 and replaced with a more extensible mechanism. They're now deprecated. See also https://github.com/pmd/pmd/pull/1426- Author:
- pieter_van_raemdonck - Application Engineers NV/SA - www.ae.be
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description VisitorStartergetDataFlowFacade()Deprecated.see note in the class descriptionDataFlowHandlergetDataFlowHandler()Deprecated.This is internal APIParserOptionsgetDefaultParserOptions()Get the default ParserOptions.DFAGraphRulegetDFAGraphRule()Deprecated.This is internal APIVisitorStartergetDumpFacade(java.io.Writer writer, java.lang.String prefix, boolean recurse)Deprecated.The dump façade is not that useful and will be completely scrapped with PMD 7.0.0LanguageMetricsProvider<?,?>getLanguageMetricsProvider()Returns the metrics provider for this language version, or null if it has none.VisitorStartergetMultifileFacade()Deprecated.see note in the class descriptionParsergetParser(ParserOptions parserOptions)Get the Parser.VisitorStartergetQualifiedNameResolutionFacade(java.lang.ClassLoader classLoader)Deprecated.see note in the class descriptionRuleViolationFactorygetRuleViolationFactory()Get the RuleViolationFactory.VisitorStartergetSymbolFacade()Deprecated.see note in the class descriptionVisitorStartergetSymbolFacade(java.lang.ClassLoader classLoader)Deprecated.see note in the class descriptionVisitorStartergetTypeResolutionFacade(java.lang.ClassLoader classLoader)Deprecated.see note in the class descriptionXPathHandlergetXPathHandler()Get the XPathHandler.
-
-
-
Method Detail
-
getDataFlowHandler
@Deprecated @InternalApi DataFlowHandler getDataFlowHandler()
Deprecated.This is internal APIGet the DataFlowHandler.
-
getXPathHandler
XPathHandler getXPathHandler()
Get the XPathHandler.
-
getRuleViolationFactory
RuleViolationFactory getRuleViolationFactory()
Get the RuleViolationFactory.
-
getDefaultParserOptions
ParserOptions getDefaultParserOptions()
Get the default ParserOptions.- Returns:
- ParserOptions
-
getParser
Parser getParser(ParserOptions parserOptions)
Get the Parser.- Returns:
- Parser
-
getDataFlowFacade
@Deprecated VisitorStarter getDataFlowFacade()
Deprecated.see note in the class descriptionGet the DataFlowFacade.- Returns:
- VisitorStarter
-
getSymbolFacade
@Deprecated VisitorStarter getSymbolFacade()
Deprecated.see note in the class descriptionGet the SymbolFacade.- Returns:
- VisitorStarter
-
getSymbolFacade
@Deprecated VisitorStarter getSymbolFacade(java.lang.ClassLoader classLoader)
Deprecated.see note in the class descriptionGet the SymbolFacade.- Parameters:
classLoader- A ClassLoader to use for resolving Types.- Returns:
- VisitorStarter
-
getTypeResolutionFacade
@Deprecated VisitorStarter getTypeResolutionFacade(java.lang.ClassLoader classLoader)
Deprecated.see note in the class descriptionGet the TypeResolutionFacade.- Parameters:
classLoader- A ClassLoader to use for resolving Types.- Returns:
- VisitorStarter
-
getDumpFacade
@Deprecated VisitorStarter getDumpFacade(java.io.Writer writer, java.lang.String prefix, boolean recurse)
Deprecated.The dump façade is not that useful and will be completely scrapped with PMD 7.0.0Get the DumpFacade.- Parameters:
writer- The writer to dump to.- Returns:
- VisitorStarter
-
getMultifileFacade
@Deprecated VisitorStarter getMultifileFacade()
Deprecated.see note in the class descriptionGets the visitor that performs multifile data gathering.- Returns:
- The visitor starter
-
getQualifiedNameResolutionFacade
@Deprecated VisitorStarter getQualifiedNameResolutionFacade(java.lang.ClassLoader classLoader)
Deprecated.see note in the class descriptionGets the visitor that populates the qualified names of the nodes.- Parameters:
classLoader- The classloader to use to resolve the types of type qualified names- Returns:
- The visitor starter
-
getDFAGraphRule
@Deprecated @InternalApi DFAGraphRule getDFAGraphRule()
Deprecated.This is internal API
-
getLanguageMetricsProvider
@Experimental LanguageMetricsProvider<?,?> getLanguageMetricsProvider()
Returns 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.
-
-