|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.pmd.RuleSet
Constructor Summary | |
RuleSet()
|
Method Summary | |
void |
addRule(Rule rule)
|
void |
addRuleSet(RuleSet ruleSet)
|
void |
apply(java.util.List acuList,
RuleContext ctx)
|
java.lang.String |
getDescription()
|
java.lang.String |
getFileName()
Get the name of the file the rule set is to be stored in, e.g., "basic_rules.xml". |
java.lang.String |
getName()
|
Rule |
getRuleByName(java.lang.String ruleName)
|
java.util.Set |
getRules()
|
boolean |
include()
Returns true when the rule set is included in PMD's analysis; otherwise, false when it is excluded. |
void |
setDescription(java.lang.String description)
|
void |
setFileName(java.lang.String fileName)
Set the name of the file the rule set is to be stored in, e.g., "basic_rules.xml". |
void |
setInclude(boolean include)
Set to true when the rule set is included in PMD's analysis; otherwise, set to false when it is excluded. |
void |
setName(java.lang.String name)
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RuleSet()
Method Detail |
public int size()
public void addRule(Rule rule)
public java.util.Set getRules()
public Rule getRuleByName(java.lang.String ruleName)
public void addRuleSet(RuleSet ruleSet)
public void apply(java.util.List acuList, RuleContext ctx)
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 include()
public void setInclude(boolean include)
include
- True to include during analysis.public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName
- The name of the rule set file.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |