Package net.sourceforge.pmd.lang
Interface LanguageVersionHandler
-
- All Known Implementing Classes:
AbstractLanguageVersionHandler
public interface LanguageVersionHandler
Interface 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 VisitorStarter
getDataFlowFacade()
Deprecated.see note in the class descriptionDataFlowHandler
getDataFlowHandler()
Deprecated.This is internal APIParserOptions
getDefaultParserOptions()
Get the default ParserOptions.DesignerBindings
getDesignerBindings()
Returns the designer bindings for this language version.DFAGraphRule
getDFAGraphRule()
Deprecated.This is internal APIVisitorStarter
getDumpFacade(Writer writer, 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.VisitorStarter
getMultifileFacade()
Deprecated.see note in the class descriptionParser
getParser(ParserOptions parserOptions)
Get the Parser.VisitorStarter
getQualifiedNameResolutionFacade(ClassLoader classLoader)
Deprecated.see note in the class descriptionRuleViolationFactory
getRuleViolationFactory()
Get the RuleViolationFactory.VisitorStarter
getSymbolFacade()
Deprecated.see note in the class descriptionVisitorStarter
getSymbolFacade(ClassLoader classLoader)
Deprecated.see note in the class descriptionVisitorStarter
getTypeResolutionFacade(ClassLoader classLoader)
Deprecated.see note in the class descriptionXPathHandler
getXPathHandler()
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(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(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(Writer writer, 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(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.
-
getDesignerBindings
@Experimental DesignerBindings getDesignerBindings()
Returns the designer bindings for this language version. Null is not an acceptable result, useDesignerBindings.DefaultDesignerBindings.getInstance()
instead.- Since:
- 6.20.0
-
-