public interface GroovyRunner
Modifier and Type | Method and Description |
---|---|
boolean |
canRun(Class<?> scriptClass,
GroovyClassLoader loader)
Returns
true if this runner is able to
run the given class. |
Object |
run(Class<?> scriptClass,
GroovyClassLoader loader)
Runs the given class.
|
boolean canRun(Class<?> scriptClass, GroovyClassLoader loader)
true
if this runner is able to
run the given class.scriptClass
- class to runloader
- used to locate classes and resourcesObject run(Class<?> scriptClass, GroovyClassLoader loader)
scriptClass
- class to runloader
- used to locate classes and resources