Package net.sourceforge.pmd.lang
Class LanguageProcessor.AnalysisTask
- java.lang.Object
-
- net.sourceforge.pmd.lang.LanguageProcessor.AnalysisTask
-
- Enclosing interface:
- LanguageProcessor
public static class LanguageProcessor.AnalysisTask extends Object
Configuration of an analysis, as given toLanguageProcessor.launchAnalysis(AnalysisTask)
. This includes eg the set of files to process (which may be of various languages), the cache manager, and the rulesets.
-
-
Constructor Summary
Constructors Constructor Description AnalysisTask(RuleSets rulesets, List<TextFile> files, GlobalAnalysisListener listener, int threadCount, AnalysisCache analysisCache, MessageReporter messageReporter, LanguageProcessorRegistry lpRegistry)
Create a new task.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalysisCache
getAnalysisCache()
List<TextFile>
getFiles()
GlobalAnalysisListener
getListener()
LanguageProcessorRegistry
getLpRegistry()
MessageReporter
getMessageReporter()
RuleSets
getRulesets()
int
getThreadCount()
LanguageProcessor.AnalysisTask
withFiles(List<TextFile> newFiles)
Produce a new analysis task with just different files.
-
-
-
Constructor Detail
-
AnalysisTask
@InternalApi public AnalysisTask(RuleSets rulesets, List<TextFile> files, GlobalAnalysisListener listener, int threadCount, AnalysisCache analysisCache, MessageReporter messageReporter, LanguageProcessorRegistry lpRegistry)
Create a new task. This constructor is internal and will be called by PMD.
-
-
Method Detail
-
getRulesets
public RuleSets getRulesets()
-
getListener
public GlobalAnalysisListener getListener()
-
getThreadCount
public int getThreadCount()
-
getAnalysisCache
public AnalysisCache getAnalysisCache()
-
getMessageReporter
public MessageReporter getMessageReporter()
-
getLpRegistry
public LanguageProcessorRegistry getLpRegistry()
-
withFiles
public LanguageProcessor.AnalysisTask withFiles(List<TextFile> newFiles)
Produce a new analysis task with just different files.
-
-