MonoThreadProcessor
, MultiThreadProcessor
public abstract class AbstractPMDProcessor
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
protected PMDConfiguration |
configuration |
Constructor | Description |
---|---|
AbstractPMDProcessor(PMDConfiguration configuration) |
Modifier and Type | Method | Description |
---|---|---|
protected abstract void |
collectReports(java.util.List<Renderer> renderers) |
|
protected RuleSets |
createRuleSets(RuleSetFactory factory,
Report report) |
Create instances for each rule defined in the ruleset(s) in the
configuration.
|
protected java.lang.String |
filenameFrom(DataSource dataSource) |
|
void |
processFiles(RuleSetFactory ruleSetFactory,
java.util.List<DataSource> files,
RuleContext ctx,
java.util.List<Renderer> renderers) |
|
void |
renderReports(java.util.List<Renderer> renderers,
Report report) |
|
protected abstract void |
runAnalysis(PmdRunnable runnable) |
protected final PMDConfiguration configuration
public AbstractPMDProcessor(PMDConfiguration configuration)
protected java.lang.String filenameFrom(DataSource dataSource)
protected RuleSets createRuleSets(RuleSetFactory factory, Report report)
factory
- The factory used to create the configured rule setsreport
- The base report on which to report any configuration errorspublic void processFiles(RuleSetFactory ruleSetFactory, java.util.List<DataSource> files, RuleContext ctx, java.util.List<Renderer> renderers)
protected abstract void runAnalysis(PmdRunnable runnable)
protected abstract void collectReports(java.util.List<Renderer> renderers)
Copyright © 2002–2018 PMD. All rights reserved.