|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.RuleSet
This class represents a collectin of rules.
Rule
Constructor Summary | |
RuleSet()
|
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(java.util.List acuList,
RuleContext ctx)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getDescription()
Gives the description of this ruleset |
Language |
getLanguage()
|
java.lang.String |
getName()
Gives the name of this ruleset |
Rule |
getRuleByName(java.lang.String ruleName)
Returns the Rule with the given name |
java.util.Collection |
getRules()
Returns the actual Collection of rules in this ruleset |
int |
hashCode()
|
void |
setDescription(java.lang.String description)
Set the description of this ruleset |
void |
setLanguage(Language language)
|
void |
setName(java.lang.String name)
Set the name of this ruleset |
int |
size()
Returns the number of rules in this ruleset |
boolean |
usesDFA()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RuleSet()
Method Detail |
public int size()
public void addRule(Rule rule)
rule
- the rule to be addedpublic java.util.Collection getRules()
Rule
public boolean usesDFA()
public Rule getRuleByName(java.lang.String ruleName)
ruleName
- the name of the rule to find
public void addRuleSet(RuleSet ruleSet)
ruleSet
- the RuleSet to addpublic void apply(java.util.List acuList, RuleContext ctx)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- a String representing the namepublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- a String representing the descriptionpublic boolean equals(java.lang.Object o)
Object.equals(java.lang.Object)
public int hashCode()
Object.hashCode()
public Language getLanguage()
public void setLanguage(Language language)
language
- The language to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |