net.sourceforge.pmd
Class RulesetsFactoryUtils

java.lang.Object
  extended by net.sourceforge.pmd.RulesetsFactoryUtils

public final class RulesetsFactoryUtils
extends Object


Method Summary
static RuleSetFactory getRulesetFactory(PMDConfiguration configuration)
           
static RuleSets getRuleSets(String rulesets, RuleSetFactory factory)
          Creates a new rulesets with the given string.
static RuleSets getRuleSetsWithBenchmark(String rulesets, RuleSetFactory factory)
          See getRuleSets(String, RuleSetFactory).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRuleSets

public static RuleSets getRuleSets(String rulesets,
                                   RuleSetFactory factory)
Creates a new rulesets with the given string. The resulting rulesets will contain all referenced rulesets.

Parameters:
rulesets - the string with the rulesets to load
factory - the ruleset factory
Returns:
the rulesets
Throws:
IllegalArgumentException - if rulesets is empty (means, no rules have been found) or if a ruleset couldn't be found.

getRuleSetsWithBenchmark

public static RuleSets getRuleSetsWithBenchmark(String rulesets,
                                                RuleSetFactory factory)
See getRuleSets(String, RuleSetFactory). In addition, the loading of the rules is benchmarked.

Parameters:
rulesets - the string with the rulesets to load
factory - the ruleset factory
Returns:
the rulesets
Throws:
IllegalArgumentException - if rulesets is empty (means, no rules have been found) or if a ruleset couldn't be found.

getRulesetFactory

public static RuleSetFactory getRulesetFactory(PMDConfiguration configuration)


Copyright © 2002-2016 InfoEther. All Rights Reserved.