|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.RulesetsFactoryUtils
public final class RulesetsFactoryUtils
Method Summary | |
---|---|
static RuleSetFactory |
getRulesetFactory(PMDConfiguration configuration)
|
static RuleSets |
getRuleSets(String rulesets,
RuleSetFactory factory)
Creates a new rulesets with the given string. |
static RuleSets |
getRuleSets(String rulesets,
RuleSets pmdRuleSets,
RuleSetFactory factory)
Creates a new rulesets with the given string. |
static RuleSets |
getRuleSetsWithBenchmark(String rulesets,
RuleSetFactory factory)
See getRuleSets(String, RuleSetFactory) . |
static RuleSets |
getRuleSetsWithBenchmark(String rulesets,
RuleSets pmdRuleSets,
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 |
---|
public static RuleSets getRuleSets(String rulesets, RuleSetFactory factory)
rulesets
- the string with the rulesets to loadfactory
- the ruleset factory
IllegalArgumentException
- if rulesets is empty (means, no rules have been found) or if a
ruleset couldn't be found.public static RuleSets getRuleSets(String rulesets, RuleSets pmdRuleSets, RuleSetFactory factory)
rulesets
- the string with the rulesets to loadfactory
- the ruleset factorypmdRuleSets
- RuleSets initialized in PMDConfiguration
IllegalArgumentException
- 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 factory
IllegalArgumentException
- if rulesets is empty (means, no rules have been found) or if a
ruleset couldn't be found.public static RuleSets getRuleSetsWithBenchmark(String rulesets, RuleSets pmdRuleSets, RuleSetFactory factory)
getRuleSets(String, RuleSetFactory)
. In addition, the loading of the rules
is benchmarked.
rulesets
- the string with the rulesets to loadpmdRuleSets
- RuleSets initialized in PMDConfigurationfactory
- the ruleset factory
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |