Groovy Documentation

groovy.org.codenarc.ruleset
[Groovy] Class CompositeRuleSet

java.lang.Object
  groovy.org.codenarc.ruleset.CompositeRuleSet
All Implemented Interfaces:
RuleSet

class CompositeRuleSet

A RuleSet implementation that aggregates a set of RuleSets and Rules.

Authors:
Chris Mair


Method Summary
void addRule(Rule rule)

Add a single Rule to this RuleSet

void addRuleSet(RuleSet ruleSet)

Add all of the Rules within the specified RuleSet to this RuleSet

List getRules()

Returns:
a List of Rule objects.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

addRule

void addRule(Rule rule)
Add a single Rule to this RuleSet
Parameters:
rule - - the Rule to add


addRuleSet

void addRuleSet(RuleSet ruleSet)
Add all of the Rules within the specified RuleSet to this RuleSet
Parameters:
ruleSet - - the RuleSet whose Rules are to be included


getRules

List getRules()
Returns:
a List of Rule objects. The returned List is immutable.


 

Groovy Documentation