Package org.codenarc.ruleset
Class RuleSetUtil
java.lang.Object
org.codenarc.ruleset.RuleSetUtil
- All Implemented Interfaces:
groovy.lang.GroovyObject
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
assertClassImplementsRuleInterface
(Class ruleClass) groovy.lang.MetaClass
getProperty
(String property) invokeMethod
(String method, Object arguments) protected static Rule
loadRuleScriptFile
(String path) static RuleSet
loadRuleSetFile
(String path) void
setMetaClass
(groovy.lang.MetaClass mc) void
setProperty
(String property, Object value)
-
Field Details
-
CLASS_LOADER_SYS_PROP
- See Also:
-
-
Constructor Details
-
RuleSetUtil
public RuleSetUtil()
-
-
Method Details
-
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
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
assertClassImplementsRuleInterface
-
loadRuleSetFile
-
loadRuleScriptFile
-