Package org.codenarc.ruleset
Class TopLevelDelegate
- java.lang.Object
-
- org.codenarc.ruleset.TopLevelDelegate
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
public class TopLevelDelegate extends Object implements groovy.lang.GroovyObject
-
-
Constructor Summary
Constructors Constructor Description TopLevelDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
description(String description)
groovy.lang.MetaClass
getMetaClass()
Object
getProperty(String property)
protected RuleSet
getRuleSet()
Object
invokeMethod(String method, Object arguments)
Object
methodMissing(String name, Object args)
Object
propertyMissing(String name)
void
rule(Class ruleClass)
void
rule(Class ruleClass, groovy.lang.Closure closure)
void
rule(Class ruleClass, Map properties)
void
rule(String path)
void
rule(String path, groovy.lang.Closure closure)
void
ruleset(String path)
void
ruleset(String path, groovy.lang.Closure closure)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(String property, Object value)
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
ruleset
public void ruleset(String path)
-
ruleset
public void ruleset(String path, groovy.lang.Closure closure)
-
rule
public void rule(Class ruleClass)
-
rule
public void rule(Class ruleClass, groovy.lang.Closure closure)
-
rule
public void rule(String path)
-
rule
public void rule(String path, groovy.lang.Closure closure)
-
description
public void description(String description)
-
getRuleSet
protected RuleSet getRuleSet()
-
-