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()
Gives the description of this ruleset
|
Language | getLanguage() |
String | getName()
Gives the name of this ruleset
|
Rule | getRuleByName(String ruleName)
Returns the Rule with the given name
|
Collection | getRules()
Returns the actual Collection of rules in this ruleset
|
int | hashCode() |
void | setDescription(String description)
Set the description of this ruleset
|
void | setLanguage(Language language) |
void | setName(String name)
Set the name of this ruleset
|
int | size()
Returns the number of rules in this ruleset
|
boolean | usesDFA() |
Parameters: rule the rule to be added
Parameters: ruleSet the RuleSet to add
See Also: java.lang.Object#equals(java.lang.Object)
Returns: a String representing the description
Returns: Returns the language.
Returns: a String representing the name
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()
Parameters: description a String representing the description
Parameters: language The language to set.
Parameters: name a String representing the name
Returns: an int representing the number of rules
Returns: true if any rule in the RuleSet needs the DFA layer