Package net.sourceforge.pmd.lang
Interface LanguageProcessor
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
BatchLanguageProcessor
Stateful object managing the analysis for a given language.
- Author:
- Clément Fournier
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classConfiguration of an analysis, as given tolaunchAnalysis(AnalysisTask). -
Method Summary
Modifier and TypeMethodDescription@NonNull PmdCapableLanguageThe language of this processor.@NonNull LanguageVersionThe language version that was configured when creating this processor.@NonNull AutoCloseablelaunchAnalysis(@NonNull LanguageProcessor.AnalysisTask analysisTask) Launch the analysis based on the givenanalysis task.@NonNull LanguageVersionHandlerservices()A collection of extension points implemented by the language.Methods inherited from interface java.lang.AutoCloseable
close
-
Method Details
-
services
@NonNull LanguageVersionHandler services()A collection of extension points implemented by the language. -
launchAnalysis
Launch the analysis based on the givenanalysis task. The analysis only has to completion after the return value has been closed, as this method may launch background threads to perform the analysis and return without blocking. In that case the returned Closeable will join the analysis threads when being closed.- Parameters:
analysisTask- Configuration of the analysis- Returns:
- A closeable - the analysis is only ended when the close method returns.
-
getLanguage
@NonNull PmdCapableLanguage getLanguage()The language of this processor. -
getLanguageVersion
@NonNull LanguageVersion getLanguageVersion()The language version that was configured when creating this processor.
-