public final class RulesetsFactoryUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static RuleSetFactory |
getRulesetFactory(PMDConfiguration configuration) |
static RuleSets |
getRuleSets(java.lang.String rulesets,
RuleSetFactory factory)
Creates a new rulesets with the given string.
|
static RuleSets |
getRuleSetsWithBenchmark(java.lang.String rulesets,
RuleSetFactory factory)
|
public static RuleSets getRuleSets(java.lang.String rulesets, RuleSetFactory factory)
rulesets - the string with the rulesets to loadfactory - the ruleset factoryjava.lang.IllegalArgumentException - if rulesets is empty (means, no rules have been found) or if a
ruleset couldn't be found.public static RuleSets getRuleSetsWithBenchmark(java.lang.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 factoryjava.lang.IllegalArgumentException - 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-2014 InfoEther. All Rights Reserved.