|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.util.GroovyScriptEngine
public class GroovyScriptEngine extends Object
Specific script engine able to reload modified scripts as well as dealing properly with dependent scripts.
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
public def GroovyScriptEngine(URL[] roots)
public def GroovyScriptEngine(URL[] roots, ClassLoader parentClassLoader)
public def GroovyScriptEngine(String[] urls)
public def GroovyScriptEngine(String[] urls, ClassLoader parentClassLoader)
public def GroovyScriptEngine(String url)
public def GroovyScriptEngine(String url, ClassLoader parentClassLoader)
public def GroovyScriptEngine(ResourceConnector rc)
public def GroovyScriptEngine(ResourceConnector rc, ClassLoader parentClassLoader)
public Script createScript(String scriptName, Binding binding)
public CompilerConfiguration getConfig()
protected long getCurrentTime()
public GroovyClassLoader getGroovyClassLoader()
public ClassLoader getParentClassLoader()
public URLConnection getResourceConnection(String resourceName)
protected boolean isSourceNewer(GroovyScriptEngine.ScriptCacheEntry entry)
public Class loadScriptByName(String scriptName)
public static void main(String[] urls)
public String run(String scriptName, String argument)
scriptName
- name of the script to runbinding
- the binding to pass to the script
public Object run(String scriptName, Binding binding)
public void setConfig(CompilerConfiguration config)
Copyright © 2003-2013 The Codehaus. All rights reserved.