org.mvel2.jsr223
Class MvelScriptEngine

java.lang.Object
  extended by javax.script.AbstractScriptEngine
      extended by org.mvel2.jsr223.MvelScriptEngine
All Implemented Interfaces:
Compilable, ScriptEngine

public class MvelScriptEngine
extends AbstractScriptEngine
implements ScriptEngine, Compilable


Field Summary
 
Fields inherited from class javax.script.AbstractScriptEngine
context
 
Fields inherited from interface javax.script.ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
 
Constructor Summary
MvelScriptEngine()
           
 
Method Summary
 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()
           
 
Methods inherited from class javax.script.AbstractScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.script.ScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, put, setBindings, setContext
 

Constructor Detail

MvelScriptEngine

public MvelScriptEngine()
Method Detail

eval

public Object eval(String script,
                   ScriptContext context)
            throws ScriptException
Specified by:
eval in interface ScriptEngine
Throws:
ScriptException

eval

public Object eval(Reader reader,
                   ScriptContext context)
            throws ScriptException
Specified by:
eval in interface ScriptEngine
Throws:
ScriptException

createBindings

public Bindings createBindings()
Specified by:
createBindings in interface ScriptEngine

getFactory

public ScriptEngineFactory getFactory()
Specified by:
getFactory in interface ScriptEngine

compile

public CompiledScript compile(String script)
                       throws ScriptException
Specified by:
compile in interface Compilable
Throws:
ScriptException

compile

public CompiledScript compile(Reader reader)
                       throws ScriptException
Specified by:
compile in interface Compilable
Throws:
ScriptException

compiledScript

public Serializable compiledScript(String script)
                            throws ScriptException
Throws:
ScriptException

evaluate

public Object evaluate(Serializable expression,
                       ScriptContext context)
                throws ScriptException
Throws:
ScriptException


Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.