|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.RuleSet
public class RuleSet
This class represents a collection 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()
|
Language |
getLanguage()
|
java.lang.String |
getName()
|
Rule |
getRuleByName(java.lang.String ruleName)
Returns the Rule with the given name |
java.util.Collection<Rule> |
getRules()
Returns the actual Collection of rules in this ruleset |
int |
hashCode()
|
void |
setDescription(java.lang.String description)
|
void |
setLanguage(Language language)
|
void |
setName(java.lang.String name)
|
int |
size()
Returns the number of rules in this ruleset |
boolean |
usesDFA()
|
boolean |
usesTypeResolution()
|
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<Rule> 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 boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public Language getLanguage()
public void setLanguage(Language language)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public boolean usesTypeResolution()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |