Package org.codenarc.ruleset
Class RuleSetUtil
- java.lang.Object
-
- org.codenarc.ruleset.RuleSetUtil
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
public class RuleSetUtil extends Object implements groovy.lang.GroovyObject
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCLASS_LOADER_SYS_PROP
-
Constructor Summary
Constructors Constructor Description RuleSetUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidassertClassImplementsRuleInterface(Class ruleClass)groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)ObjectinvokeMethod(String method, Object arguments)protected static RuleloadRuleScriptFile(String path)static RuleSetloadRuleSetFile(String path)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)
-
-
-
Field Detail
-
CLASS_LOADER_SYS_PROP
protected static final String CLASS_LOADER_SYS_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject
-
assertClassImplementsRuleInterface
protected static void assertClassImplementsRuleInterface(Class ruleClass)
-
-