public class ExprGroovyScriptEngineImpl extends AbstractExprScriptEngine implements javax.script.Compilable, javax.script.Invocable
| Modifier and Type | Class and Description |
|---|---|
static class |
ExprGroovyScriptEngineImpl.FilteringClassLoader |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MISSING_CLASSES |
| Constructor and Description |
|---|
ExprGroovyScriptEngineImpl() |
| Modifier and Type | Method and Description |
|---|---|
javax.script.CompiledScript |
compile(java.io.Reader reader) |
javax.script.CompiledScript |
compile(java.lang.String scriptSource) |
ExprScriptEngineFactory |
createFactory() |
java.lang.Object |
eval(java.io.Reader reader,
javax.script.ScriptContext ctx) |
java.lang.Object |
eval(java.lang.String source,
javax.script.ScriptContext scriptContext) |
java.lang.String |
getFunctionName(ExprDef exprDef) |
<T> T |
getInterface(java.lang.Class<T> clazz) |
<T> T |
getInterface(java.lang.Object thiz,
java.lang.Class<T> clazz) |
java.lang.Object |
invokeFunction(java.lang.String name,
java.lang.Object... args) |
java.lang.Object |
invokeMethod(java.lang.Object thiz,
java.lang.String name,
java.lang.Object... args) |
static void |
setValidateOnEvaluate(java.lang.Boolean isValidateOnEvaluate) |
createBindings, getCurrentCompileContext, getCurrentScriptContext, getFactory, setCurrentScriptContextpublic static final java.lang.String MISSING_CLASSES
public ExprScriptEngineFactory createFactory()
createFactory in class AbstractExprScriptEnginepublic java.lang.Object eval(java.io.Reader reader,
javax.script.ScriptContext ctx)
throws javax.script.ScriptException
eval in interface javax.script.ScriptEnginejavax.script.ScriptExceptionpublic java.lang.Object eval(java.lang.String source,
javax.script.ScriptContext scriptContext)
throws javax.script.ScriptException
eval in interface javax.script.ScriptEnginejavax.script.ScriptExceptionpublic javax.script.CompiledScript compile(java.lang.String scriptSource)
throws javax.script.ScriptException
compile in interface javax.script.Compilablejavax.script.ScriptExceptionpublic javax.script.CompiledScript compile(java.io.Reader reader)
throws javax.script.ScriptException
compile in interface javax.script.Compilablejavax.script.ScriptExceptionpublic java.lang.Object invokeFunction(java.lang.String name,
java.lang.Object... args)
throws javax.script.ScriptException,
java.lang.NoSuchMethodException
invokeFunction in interface javax.script.Invocablejavax.script.ScriptExceptionjava.lang.NoSuchMethodExceptionpublic java.lang.Object invokeMethod(java.lang.Object thiz,
java.lang.String name,
java.lang.Object... args)
throws javax.script.ScriptException,
java.lang.NoSuchMethodException
invokeMethod in interface javax.script.Invocablejavax.script.ScriptExceptionjava.lang.NoSuchMethodExceptionpublic <T> T getInterface(java.lang.Class<T> clazz)
getInterface in interface javax.script.Invocablepublic <T> T getInterface(java.lang.Object thiz,
java.lang.Class<T> clazz)
getInterface in interface javax.script.Invocablepublic java.lang.String getFunctionName(ExprDef exprDef) throws javax.script.ScriptException
getFunctionName in class AbstractExprScriptEnginejavax.script.ScriptException@Concealed public static void setValidateOnEvaluate(java.lang.Boolean isValidateOnEvaluate)