public class GroovyScriptEngineImpl extends AbstractScriptEngine implements Compilable, Invocable
JSR-223 Engine implementation. Adapted from original by Mike Grogan and A. Sundararajan
| Fields inherited from class | Fields | 
|---|---|
| class AbstractScriptEngine | ARGV, FILENAME, ENGINE, ENGINE_VERSION, NAME, LANGUAGE, LANGUAGE_VERSION | 
| Constructor and description | 
|---|
| GroovyScriptEngineImpl() | 
| GroovyScriptEngineImpl(GroovyClassLoader classLoader) | 
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | public CompiledScript | compile(String scriptSource) | 
|  | public CompiledScript | compile(Reader reader) | 
|  | public Bindings | createBindings() | 
|  | public Object | eval(Reader reader, ScriptContext ctx) | 
|  | public Object | eval(String script, ScriptContext ctx) | 
|  | public GroovyClassLoader | getClassLoader() | 
|  | public ScriptEngineFactory | getFactory() | 
| <T> | public T | getInterface(Class<T> clazz) | 
| <T> | public T | getInterface(Object thiz, Class<T> clazz) | 
|  | public Object | getVariable(String name) | 
|  | public Object | invokeFunction(String name, Object args) | 
|  | public Object | invokeMethod(Object thiz, String name, Object args) | 
|  | public Object | invokeMethod(Object object, String name, Object args) | 
|  | public Object | invokeMethod(Object object, String name, Object[] args) | 
|  | public Object | invokeStaticMethod(Object object, String name, Object[] args) | 
|  | public GroovyClassLoader | run() | 
|  | public void | setClassLoader(GroovyClassLoader classLoader) | 
|  | public void | setVariable(String name, Object value) | 
| Methods inherited from class | Name | 
|---|---|
| class AbstractScriptEngine | createBindings, equals, eval, eval, eval, eval, eval, eval, get, getBindings, getClass, getContext, getFactory, hashCode, notify, notifyAll, put, setBindings, setContext, toString, wait, wait, wait | 
Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.