public class JuelScriptEngine extends AbstractScriptEngine implements Compilable
ExpressionFactoryResolver.| Modifier and Type | Field and Description |
|---|---|
protected ExpressionFactory |
expressionFactory |
protected ScriptEngineFactory |
scriptEngineFactory |
contextARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME| Constructor and Description |
|---|
JuelScriptEngine() |
JuelScriptEngine(ScriptEngineFactory scriptEngineFactory) |
| Modifier and Type | Method and Description |
|---|---|
CompiledScript |
compile(Reader reader) |
CompiledScript |
compile(String script) |
Bindings |
createBindings() |
protected ELContext |
createElContext(ScriptContext scriptCtx) |
protected ELResolver |
createElResolver() |
Object |
eval(Reader reader,
ScriptContext scriptContext) |
Object |
eval(String script,
ScriptContext scriptContext) |
protected Object |
evaluateExpression(ValueExpression expr,
ScriptContext ctx) |
ScriptEngineFactory |
getFactory() |
static void |
importFunctions(ScriptContext ctx,
String namespace,
Object obj) |
protected ValueExpression |
parse(String script,
ScriptContext scriptContext) |
static void |
print(Object object) |
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContextprotected ScriptEngineFactory scriptEngineFactory
protected ExpressionFactory expressionFactory
public JuelScriptEngine(ScriptEngineFactory scriptEngineFactory)
public JuelScriptEngine()
public CompiledScript compile(String script) throws ScriptException
compile in interface CompilableScriptExceptionpublic CompiledScript compile(Reader reader) throws ScriptException
compile in interface CompilableScriptExceptionpublic Object eval(String script, ScriptContext scriptContext) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic Object eval(Reader reader, ScriptContext scriptContext) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic ScriptEngineFactory getFactory()
getFactory in interface ScriptEnginepublic Bindings createBindings()
createBindings in interface ScriptEngineprotected Object evaluateExpression(ValueExpression expr, ScriptContext ctx) throws ScriptException
ScriptExceptionprotected ELResolver createElResolver()
protected ValueExpression parse(String script, ScriptContext scriptContext) throws ScriptException
ScriptExceptionprotected ELContext createElContext(ScriptContext scriptCtx)
public static void print(Object object)
public static void importFunctions(ScriptContext ctx, String namespace, Object obj)
Copyright © 2019 Alfresco. All rights reserved.