public final class RulesetsFactoryUtils extends Object
Modifier and Type | Method and Description |
---|---|
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)
|
public static RuleSets getRuleSets(String rulesets, RuleSetFactory factory)
rulesets
- the string with the rulesets to loadfactory
- the ruleset factoryIllegalArgumentException
- if rulesets is empty (means, no rules have been found) or if a
ruleset couldn't be found.public static RuleSets getRuleSetsWithBenchmark(String rulesets, RuleSetFactory factory)
getRuleSets(String, RuleSetFactory)
. In addition, the loading of the rules
is benchmarked.rulesets
- the string with the rulesets to loadfactory
- the ruleset factoryIllegalArgumentException
- if rulesets is empty (means, no rules have been found) or if a
ruleset couldn't be found.public static RuleSetFactory getRulesetFactory(PMDConfiguration configuration)
Copyright © 2002-2015 InfoEther. All Rights Reserved.