net.sourceforge.pmd
public class RuleSet extends Object
See Also: Rule
Method Summary | |
---|---|
void | addRule(Rule rule)
Add a new rule to this ruleset
|
void | addRuleSet(RuleSet ruleSet)
Add a whole RuleSet to this RuleSet
|
void | apply(List acuList, RuleContext ctx) |
boolean | equals(Object o) |
String | getDescription() |
Language | getLanguage() |
String | getName() |
Rule | getRuleByName(String ruleName)
Returns the Rule with the given name
|
Collection<Rule> | getRules()
Returns the actual Collection of rules in this ruleset
|
int | hashCode() |
void | setDescription(String description) |
void | setLanguage(Language language) |
void | setName(String name) |
int | size()
Returns the number of rules in this ruleset
|
boolean | usesDFA() |
boolean | usesTypeResolution() |
Parameters: rule the rule to be added
Parameters: ruleSet the RuleSet to add
See Also: java.lang.Object#equals(java.lang.Object)
Parameters: ruleName the name of the rule to find
Returns: the rule or null if not found
Returns: a Collection with the rules. All objects are of type Rule
See Also: java.lang.Object#hashCode()
Returns: an int representing the number of rules
Returns: true if any rule in the RuleSet needs the DFA layer