Package org.codehaus.groovy.jsr223
Class GroovyScriptEngineImpl
java.lang.Object
javax.script.AbstractScriptEngine
org.codehaus.groovy.jsr223.GroovyScriptEngineImpl
- All Implemented Interfaces:
- Compilable,- Invocable,- ScriptEngine
JSR-223 Engine implementation.
 Adapted from original by Mike Grogan and A. Sundararajan
- 
Field SummaryFields inherited from class javax.script.AbstractScriptEnginecontextFields inherited from interface javax.script.ScriptEngineARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioneval(Reader reader, ScriptContext ctx) eval(String script, ScriptContext ctx) <T> TgetInterface(Class<T> clazz) <T> TgetInterface(Object thiz, Class<T> clazz) invokeFunction(String name, Object... args) invokeMethod(Object thiz, String name, Object... args) voidsetClassLoader(GroovyClassLoader classLoader) Methods inherited from class javax.script.AbstractScriptEngineeval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext
- 
Constructor Details- 
GroovyScriptEngineImplpublic GroovyScriptEngineImpl()
- 
GroovyScriptEngineImpl
 
- 
- 
Method Details- 
eval- Specified by:
- evalin interface- ScriptEngine
- Throws:
- ScriptException
 
- 
eval- Specified by:
- evalin interface- ScriptEngine
- Throws:
- ScriptException
 
- 
createBindings- Specified by:
- createBindingsin interface- ScriptEngine
 
- 
getFactory- Specified by:
- getFactoryin interface- ScriptEngine
 
- 
compile- Specified by:
- compilein interface- Compilable
- Throws:
- ScriptException
 
- 
compile- Specified by:
- compilein interface- Compilable
- Throws:
- ScriptException
 
- 
invokeFunctionpublic Object invokeFunction(String name, Object... args) throws ScriptException, NoSuchMethodException - Specified by:
- invokeFunctionin interface- Invocable
- Throws:
- ScriptException
- NoSuchMethodException
 
- 
invokeMethodpublic Object invokeMethod(Object thiz, String name, Object... args) throws ScriptException, NoSuchMethodException - Specified by:
- invokeMethodin interface- Invocable
- Throws:
- ScriptException
- NoSuchMethodException
 
- 
getInterface- Specified by:
- getInterfacein interface- Invocable
 
- 
getInterface- Specified by:
- getInterfacein interface- Invocable
 
- 
setClassLoader
- 
getClassLoader
 
-