Class RhinoScriptEngineWrapper
- java.lang.Object
-
- lumis.portal.serviceinterface.style.impl.js.rhino.RhinoScriptEngineWrapper
-
- All Implemented Interfaces:
javax.script.ScriptEngine
public class RhinoScriptEngineWrapper extends java.lang.Object implements javax.script.ScriptEngine
Script engine wrapper that performs actions within aContext
.- Since:
- 15.0.0
- Version:
- $Revision$ $Date$
-
-
Constructor Summary
Constructors Constructor Description RhinoScriptEngineWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.script.Bindings
createBindings()
java.lang.Object
eval(java.io.Reader reader)
java.lang.Object
eval(java.io.Reader reader, javax.script.Bindings n)
java.lang.Object
eval(java.io.Reader reader, javax.script.ScriptContext context)
java.lang.Object
eval(java.lang.String script)
java.lang.Object
eval(java.lang.String script, javax.script.Bindings n)
java.lang.Object
eval(java.lang.String script, javax.script.ScriptContext context)
java.lang.Object
get(java.lang.String key)
javax.script.Bindings
getBindings(int scope)
javax.script.ScriptContext
getContext()
javax.script.ScriptEngineFactory
getFactory()
void
put(java.lang.String key, java.lang.Object value)
void
setBindings(javax.script.Bindings bindings, int scope)
void
setContext(javax.script.ScriptContext context)
-
-
-
Method Detail
-
eval
public java.lang.Object eval(java.lang.String script, javax.script.ScriptContext context) throws javax.script.ScriptException
- Specified by:
eval
in interfacejavax.script.ScriptEngine
- Throws:
javax.script.ScriptException
-
eval
public java.lang.Object eval(java.io.Reader reader, javax.script.ScriptContext context) throws javax.script.ScriptException
- Specified by:
eval
in interfacejavax.script.ScriptEngine
- Throws:
javax.script.ScriptException
-
eval
public java.lang.Object eval(java.lang.String script) throws javax.script.ScriptException
- Specified by:
eval
in interfacejavax.script.ScriptEngine
- Throws:
javax.script.ScriptException
-
eval
public java.lang.Object eval(java.io.Reader reader) throws javax.script.ScriptException
- Specified by:
eval
in interfacejavax.script.ScriptEngine
- Throws:
javax.script.ScriptException
-
eval
public java.lang.Object eval(java.lang.String script, javax.script.Bindings n) throws javax.script.ScriptException
- Specified by:
eval
in interfacejavax.script.ScriptEngine
- Throws:
javax.script.ScriptException
-
eval
public java.lang.Object eval(java.io.Reader reader, javax.script.Bindings n) throws javax.script.ScriptException
- Specified by:
eval
in interfacejavax.script.ScriptEngine
- Throws:
javax.script.ScriptException
-
put
public void put(java.lang.String key, java.lang.Object value)
- Specified by:
put
in interfacejavax.script.ScriptEngine
-
get
public java.lang.Object get(java.lang.String key)
- Specified by:
get
in interfacejavax.script.ScriptEngine
-
getBindings
public javax.script.Bindings getBindings(int scope)
- Specified by:
getBindings
in interfacejavax.script.ScriptEngine
-
setBindings
public void setBindings(javax.script.Bindings bindings, int scope)
- Specified by:
setBindings
in interfacejavax.script.ScriptEngine
-
createBindings
public javax.script.Bindings createBindings()
- Specified by:
createBindings
in interfacejavax.script.ScriptEngine
-
getContext
public javax.script.ScriptContext getContext()
- Specified by:
getContext
in interfacejavax.script.ScriptEngine
-
setContext
public void setContext(javax.script.ScriptContext context)
- Specified by:
setContext
in interfacejavax.script.ScriptEngine
-
getFactory
public javax.script.ScriptEngineFactory getFactory()
- Specified by:
getFactory
in interfacejavax.script.ScriptEngine
-
-