Package net.sourceforge.pmd.processor
Class AbstractPMDProcessor
- java.lang.Object
-
- net.sourceforge.pmd.processor.AbstractPMDProcessor
-
- Direct Known Subclasses:
MonoThreadProcessor
,MultiThreadProcessor
@Deprecated @InternalApi public abstract class AbstractPMDProcessor extends Object
Deprecated.Is internal API- Author:
- Romain Pelisse <belaran@gmail.com>
-
-
Field Summary
Fields Modifier and Type Field Description protected PMDConfiguration
configuration
Deprecated.
-
Constructor Summary
Constructors Constructor Description AbstractPMDProcessor(PMDConfiguration configuration)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract void
collectReports(List<Renderer> renderers)
Deprecated.protected RuleSets
createRuleSets(RuleSetFactory factory, Report report)
Deprecated.Rulesets are created upstream of the PMDProcessor now.protected String
filenameFrom(DataSource dataSource)
Deprecated.this method will be removed.void
processFiles(RuleSetFactory ruleSetFactory, List<DataSource> files, RuleContext ctx, List<Renderer> renderers)
Deprecated.void
processFiles(RuleSets rulesets, List<DataSource> files, RuleContext ctx, List<Renderer> renderers)
Deprecated.void
renderReports(List<Renderer> renderers, Report report)
Deprecated.static void
reportBrokenRules(Report report, RuleSets rs)
Deprecated.protected abstract void
runAnalysis(PmdRunnable runnable)
Deprecated.
-
-
-
Field Detail
-
configuration
protected final PMDConfiguration configuration
Deprecated.
-
-
Constructor Detail
-
AbstractPMDProcessor
public AbstractPMDProcessor(PMDConfiguration configuration)
Deprecated.
-
-
Method Detail
-
filenameFrom
@Deprecated protected String filenameFrom(DataSource dataSource)
Deprecated.this method will be removed. It was once used to determine a short filename for the file being analyzed, so that shortnames can be reported. But the logic has been moved to the renderers.
-
createRuleSets
@Deprecated protected RuleSets createRuleSets(RuleSetFactory factory, Report report)
Deprecated.Rulesets are created upstream of the PMDProcessor now.Create instances for each rule defined in the ruleset(s) in the configuration. Please note, that the returned instances must not be used by different threads. Each thread must create its own copy of the rules.- Parameters:
factory
- The factory used to create the configured rule setsreport
- The base report on which to report any configuration errors- Returns:
- the rules within a rulesets
-
reportBrokenRules
@Deprecated public static void reportBrokenRules(Report report, RuleSets rs)
Deprecated.
-
processFiles
@Deprecated public void processFiles(RuleSetFactory ruleSetFactory, List<DataSource> files, RuleContext ctx, List<Renderer> renderers)
Deprecated.
-
processFiles
public void processFiles(RuleSets rulesets, List<DataSource> files, RuleContext ctx, List<Renderer> renderers)
Deprecated.
-
runAnalysis
protected abstract void runAnalysis(PmdRunnable runnable)
Deprecated.
-
-