net.sourceforge.pmd
Class RulesetsFactoryUtils
java.lang.Object
net.sourceforge.pmd.RulesetsFactoryUtils
public final class RulesetsFactoryUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 loadfactory
- 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 loadfactory
- 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.