Top Description Methods
org.apache.groovy.plugin

public Interface GroovyRunner

Known Direct Subinterfaces
org.codehaus.groovy.plugin.GroovyRunner
Known Direct Implementers
org.apache.groovy.plugin.DefaultRunners.Junit3TestRunner, org.apache.groovy.plugin.DefaultRunners.Junit3SuiteRunner, org.apache.groovy.plugin.DefaultRunners.Junit4TestRunner
Imports
groovy.lang.GroovyClassLoader

Classes which can run scripts should implement this interface.
Since
2.5.0

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if given class can be run, else false
canRun
(Class<?>
class to run
scriptClass
,
GroovyClassLoader
used to locate classes and resources
loader
)

Returns true if this runner is able to run the given class.

public Object

Returns:

result of running the class
run
(Class<?>
class to run
scriptClass
,
GroovyClassLoader
used to locate classes and resources
loader
)

Runs the given class.

Method Detail

canRunback to summary
public boolean canRun(Class<?> scriptClass, GroovyClassLoader loader)

Returns true if this runner is able to run the given class.

Parameters
scriptClass:Class<?>

class to run

loader:GroovyClassLoader

used to locate classes and resources

Returns:boolean

true if given class can be run, else false

runback to summary
public Object run(Class<?> scriptClass, GroovyClassLoader loader)

Runs the given class.

Parameters
scriptClass:Class<?>

class to run

loader:GroovyClassLoader

used to locate classes and resources

Returns:Object

result of running the class