public abstract class AbstractPMDProcessor extends Object
Modifier and Type | Field and Description |
---|---|
protected PMDConfiguration |
configuration |
Constructor and Description |
---|
AbstractPMDProcessor(PMDConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
collectReports(List<Renderer> renderers) |
protected RuleSets |
createRuleSets(RuleSetFactory factory)
Create instances for each rule defined in the ruleset(s) in
the configuration.
|
protected String |
filenameFrom(DataSource dataSource) |
void |
processFiles(RuleSetFactory ruleSetFactory,
List<DataSource> files,
RuleContext ctx,
List<Renderer> renderers) |
void |
renderReports(List<Renderer> renderers,
Report report) |
protected abstract void |
runAnalysis(PmdRunnable runnable) |
protected final PMDConfiguration configuration
public AbstractPMDProcessor(PMDConfiguration configuration)
protected String filenameFrom(DataSource dataSource)
protected RuleSets createRuleSets(RuleSetFactory factory)
PmdRunnable.PmdThread#getRuleSets(String)
).factory
- public void processFiles(RuleSetFactory ruleSetFactory, List<DataSource> files, RuleContext ctx, List<Renderer> renderers)
protected abstract void runAnalysis(PmdRunnable runnable)
Copyright © 2002–2017 PMD. All rights reserved.