org.codenarc.ruleset
[Groovy] Class GroovyDslRuleSet
java.lang.Object
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
- Version:
- \$Revision: 616 \$ - \$Date: 2011-02-27 05:20:40 -0500 (Sun, 27 Feb 2011) \$
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
|
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
getRules
List getRules()
-
- Returns:
- a List of Rule objects
Groovy Documentation