Package net.sourceforge.pmd.lang
Interface LanguageVersionHandler
-
- All Known Implementing Classes:
AbstractLanguageVersionHandler
,AbstractPmdLanguageVersionHandler
public interface LanguageVersionHandler
Interface for obtaining the classes necessary for checking source files of a specific language.- Author:
- pieter_van_raemdonck - Application Engineers NV/SA - www.ae.be
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default DesignerBindings
getDesignerBindings()
Returns the designer bindings for this language version.default List<ViolationSuppressor>
getExtraViolationSuppressors()
Returns additional language-specific violation suppressors.default LanguageMetricsProvider
getLanguageMetricsProvider()
Returns the metrics provider for this language version, or null if it has none.Parser
getParser()
Returns the parser instance.default ViolationDecorator
getViolationDecorator()
Returns the language-specific violation decorator.default XPathHandler
getXPathHandler()
Get the XPathHandler.
-
-
-
Method Detail
-
getXPathHandler
default XPathHandler getXPathHandler()
Get the XPathHandler.
-
getParser
Parser getParser()
Returns the parser instance.
-
getViolationDecorator
default ViolationDecorator getViolationDecorator()
Returns the language-specific violation decorator.
-
getExtraViolationSuppressors
default List<ViolationSuppressor> getExtraViolationSuppressors()
Returns additional language-specific violation suppressors. These take precedence over the default suppressors (eg nopmd comment), but do not replace them.
-
getLanguageMetricsProvider
default LanguageMetricsProvider getLanguageMetricsProvider()
Returns the metrics provider for this language version, or null if it has none.
-
getDesignerBindings
default DesignerBindings getDesignerBindings()
Returns the designer bindings for this language version. Null is not an acceptable result, useDesignerBindings.DefaultDesignerBindings.getInstance()
instead.- Since:
- 6.20.0
-
-