net.sourceforge.pmd.processor
Class AbstractPMDProcessor

java.lang.Object
  extended by net.sourceforge.pmd.processor.AbstractPMDProcessor
Direct Known Subclasses:
MonoThreadProcessor, MultiThreadProcessor

public abstract class AbstractPMDProcessor
extends Object

Author:
Romain Pelisse

Field Summary
protected  PMDConfiguration configuration
           
 
Constructor Summary
AbstractPMDProcessor(PMDConfiguration configuration)
           
 
Method Summary
protected  RuleSets createRuleSets(RuleSetFactory factory)
          Create instances for each rule defined in the ruleset(s) in the configuration.
protected  String filenameFrom(DataSource dataSource)
           
 void renderReports(List<Renderer> renderers, Report report)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

protected final PMDConfiguration configuration
Constructor Detail

AbstractPMDProcessor

public AbstractPMDProcessor(PMDConfiguration configuration)
Method Detail

renderReports

public void renderReports(List<Renderer> renderers,
                          Report report)

filenameFrom

protected String filenameFrom(DataSource dataSource)

createRuleSets

protected RuleSets createRuleSets(RuleSetFactory factory)
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 (see PmdRunnable.PmdThread.getRuleSets(String)).

Parameters:
factory -
Returns:
the rules within a rulesets


Copyright © 2002-2016 InfoEther. All Rights Reserved.