Groovy Documentation

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

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

class GroovyDslRuleSet

A RuleSet implementation that parses a Groovy DSL of RuleSet definitions. The filename passed into the constructor is interpreted relative to the classpath. Note that this class attempts to read the file and parse the Groovy from within the constructor.

Authors:
Chris Mair


Constructor Summary
GroovyDslRuleSet(String path)

Construct a new instance on the specified Groovy DSL RuleSet file path

 
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

GroovyDslRuleSet

GroovyDslRuleSet(String path)
Construct a new instance on the specified Groovy DSL RuleSet file path
Parameters:
path - - the path to the Groovy DSL RuleSet definition file, relative to the classpath; must not be empty or null


 
Method Detail

getRules

List getRules()
Returns:
a List of Rule objects


 

Groovy Documentation