Groovy Documentation

org.codenarc.ruleset
Class GroovyDslRuleSet

java.lang.Object
  org.codenarc.ruleset.GroovyDslRuleSet

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.

author:
Chris Mair
version:
$Revision: 320 $ - $Date: 2010-04-14 21:43:48 -0400 (Wed, 14 Apr 2010) $


Constructor Summary
GroovyDslRuleSet(String path)

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

 
Method Summary
List getRules()

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

Constructor Detail

GroovyDslRuleSet

public GroovyDslRuleSet(String path)
Construct a new instance on the specified Groovy DSL RuleSet file path
param:
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()
return:
a List of Rule objects


 

Groovy Documentation