|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.RuleSets
Grouping of Rules per Language in a RuleSet.
Constructor Summary | |
RuleSets()
Public constructor. |
|
RuleSets(RuleSet ruleSet)
Public constructor. |
Method Summary | |
void |
addRuleSet(RuleSet ruleSet)
Add a ruleset for a language. |
boolean |
applies(Language languageOfSource,
Language languageOfRule)
Check if a source with given language should be checked by rules for a given language. |
void |
apply(java.util.List acuList,
RuleContext ctx,
Language language)
Apply all applicable rules to the compilation units. |
java.util.Set |
getAllRules()
Return all rules from all rulesets. |
RuleSet[] |
getAllRuleSets()
Get all the RuleSets. |
Rule |
getRuleByName(java.lang.String ruleName)
Returns the Rule with the given name |
boolean |
usesDFA(Language language)
Check if the rules that apply to a source of the given language use DFA. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RuleSets()
public RuleSets(RuleSet ruleSet)
ruleSet
- the RuleSetMethod Detail |
public void addRuleSet(RuleSet ruleSet)
ruleSet
- the RuleSetpublic RuleSet[] getAllRuleSets()
public java.util.Set getAllRules()
public boolean applies(Language languageOfSource, Language languageOfRule)
languageOfSource
- language of a source; can not be nulllanguageOfRule
- language of a ruleset; can be null
public void apply(java.util.List acuList, RuleContext ctx, Language language)
acuList
- the List of compilation units; the type these must have,
depends on the source languagectx
- the RuleContextlanguage
- the Language of the sourcepublic boolean usesDFA(Language language)
language
- the language of a source
public Rule getRuleByName(java.lang.String ruleName)
ruleName
- the name of the rule to find
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |