Groovy Documentation

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

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

class ListRuleSet

A RuleSet implementation that returns a static List of Rules passed into its constructor.

Authors:
Chris Mair


Constructor Summary
ListRuleSet(List rules)

Construct a new instance from the specified List of rules.

 
Method Summary
List getRules()

@return a List of Rule objects

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

Constructor Detail

ListRuleSet

ListRuleSet(List rules)
Construct a new instance from the specified List of rules.
Parameters:
rules - - the List of List of Rule objects; must not be null, but may be empty.


 
Method Detail

getRules

List getRules()
Returns:
a List of Rule objects


 

Groovy Documentation