public class MvelScriptEngine extends AbstractScriptEngine implements ScriptEngine, Compilable
context
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
Constructor and Description |
---|
MvelScriptEngine() |
Modifier and Type | Method and Description |
---|---|
CompiledScript |
compile(Reader reader) |
CompiledScript |
compile(String script) |
Serializable |
compiledScript(String script) |
Bindings |
createBindings() |
Object |
eval(Reader reader,
ScriptContext context) |
Object |
eval(String script,
ScriptContext context) |
Object |
evaluate(Serializable expression,
ScriptContext context) |
ScriptEngineFactory |
getFactory() |
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
eval, eval, eval, eval, get, getBindings, getContext, put, setBindings, setContext
public Object eval(String script, ScriptContext context) throws ScriptException
eval
in interface ScriptEngine
ScriptException
public Object eval(Reader reader, ScriptContext context) throws ScriptException
eval
in interface ScriptEngine
ScriptException
public Bindings createBindings()
createBindings
in interface ScriptEngine
public ScriptEngineFactory getFactory()
getFactory
in interface ScriptEngine
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 Serializable compiledScript(String script) throws ScriptException
ScriptException
public Object evaluate(Serializable expression, ScriptContext context) throws ScriptException
ScriptException
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.