|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.util.GroovyScriptEngine
public class GroovyScriptEngine extends java.lang.Object
Specific script engine able to reload modified scripts as well as dealing properly with dependent scripts.
Method Summary | |
---|---|
java.lang.Object
|
GroovyScriptEngine(java.net.URL[] roots)
|
java.lang.Object
|
GroovyScriptEngine(java.net.URL[] roots, java.lang.ClassLoader parentClassLoader)
|
java.lang.Object
|
GroovyScriptEngine(java.lang.String[] urls)
|
java.lang.Object
|
GroovyScriptEngine(java.lang.String[] urls, java.lang.ClassLoader parentClassLoader)
|
java.lang.Object
|
GroovyScriptEngine(java.lang.String url)
|
java.lang.Object
|
GroovyScriptEngine(java.lang.String url, java.lang.ClassLoader parentClassLoader)
|
java.lang.Object
|
GroovyScriptEngine(ResourceConnector rc)
|
java.lang.Object
|
GroovyScriptEngine(ResourceConnector rc, java.lang.ClassLoader parentClassLoader)
|
Script
|
createScript(java.lang.String scriptName, Binding binding)
|
CompilerConfiguration
|
getConfig()
|
protected long
|
getCurrentTime()
|
GroovyClassLoader
|
getGroovyClassLoader()
Returns the GroovyClassLoader associated with this script engine instance. |
java.lang.ClassLoader
|
getParentClassLoader()
|
java.net.URLConnection
|
getResourceConnection(java.lang.String resourceName)
|
protected boolean
|
isSourceNewer(GroovyScriptEngine.ScriptCacheEntry entry)
|
java.lang.Class
|
loadScriptByName(java.lang.String scriptName)
|
static void
|
main(java.lang.String[] urls)
|
java.lang.String
|
run(java.lang.String scriptName, java.lang.String argument)
Run a script identified by name with a given binding. |
java.lang.Object
|
run(java.lang.String scriptName, Binding binding)
|
void
|
setConfig(CompilerConfiguration config)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
public java.lang.Object GroovyScriptEngine(java.net.URL[] roots)
public java.lang.Object GroovyScriptEngine(java.net.URL[] roots, java.lang.ClassLoader parentClassLoader)
public java.lang.Object GroovyScriptEngine(java.lang.String[] urls)
public java.lang.Object GroovyScriptEngine(java.lang.String[] urls, java.lang.ClassLoader parentClassLoader)
public java.lang.Object GroovyScriptEngine(java.lang.String url)
public java.lang.Object GroovyScriptEngine(java.lang.String url, java.lang.ClassLoader parentClassLoader)
public java.lang.Object GroovyScriptEngine(ResourceConnector rc)
public java.lang.Object GroovyScriptEngine(ResourceConnector rc, java.lang.ClassLoader parentClassLoader)
public Script createScript(java.lang.String scriptName, Binding binding)
public CompilerConfiguration getConfig()
protected long getCurrentTime()
public GroovyClassLoader getGroovyClassLoader()
public java.lang.ClassLoader getParentClassLoader()
public java.net.URLConnection getResourceConnection(java.lang.String resourceName)
protected boolean isSourceNewer(GroovyScriptEngine.ScriptCacheEntry entry)
public java.lang.Class loadScriptByName(java.lang.String scriptName)
public static void main(java.lang.String[] urls)
public java.lang.String run(java.lang.String scriptName, java.lang.String argument)
scriptName
- name of the script to runbinding
- the binding to pass to the script
public java.lang.Object run(java.lang.String scriptName, Binding binding)
public void setConfig(CompilerConfiguration config)
Groovy Documentation