public class JuelScriptEngine extends AbstractScriptEngine implements Compilable
ExpressionFactoryResolver
.context
ARGV, 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() |
Object |
eval(Reader reader,
ScriptContext scriptContext) |
Object |
eval(String script,
ScriptContext scriptContext) |
ScriptEngineFactory |
getFactory() |
static void |
importFunctions(ScriptContext ctx,
String namespace,
Object obj) |
static void |
print(Object object) |
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext
public JuelScriptEngine(ScriptEngineFactory scriptEngineFactory)
public JuelScriptEngine()
public CompiledScript compile(String script) throws ScriptException
compile
in interface Compilable
ScriptException
public CompiledScript compile(Reader reader) throws ScriptException
compile
in interface Compilable
ScriptException
public Object eval(String script, ScriptContext scriptContext) throws ScriptException
eval
in interface ScriptEngine
ScriptException
public Object eval(Reader reader, ScriptContext scriptContext) throws ScriptException
eval
in interface ScriptEngine
ScriptException
public ScriptEngineFactory getFactory()
getFactory
in interface ScriptEngine
public Bindings createBindings()
createBindings
in interface ScriptEngine
public static void print(Object object)
public static void importFunctions(ScriptContext ctx, String namespace, Object obj)
Copyright © 2015. All rights reserved.