Package org.nuxeo.ecm.core.event.script
Class FakeCompiledScript
- java.lang.Object
-
- javax.script.CompiledScript
-
- org.nuxeo.ecm.core.event.script.FakeCompiledScript
-
public class FakeCompiledScript extends CompiledScript
Simulates a compiled script for scripts that don't support compilation.- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected ScriptEngine
engine
protected Script
script
-
Constructor Summary
Constructors Constructor Description FakeCompiledScript(ScriptEngine engine, Script script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
eval(ScriptContext arg0)
ScriptEngine
getEngine()
-
Methods inherited from class javax.script.CompiledScript
eval, eval
-
-
-
-
Field Detail
-
engine
protected final ScriptEngine engine
-
script
protected final Script script
-
-
Constructor Detail
-
FakeCompiledScript
public FakeCompiledScript(ScriptEngine engine, Script script)
-
-
Method Detail
-
eval
public Object eval(ScriptContext arg0) throws ScriptException
- Specified by:
eval
in classCompiledScript
- Throws:
ScriptException
-
getEngine
public ScriptEngine getEngine()
- Specified by:
getEngine
in classCompiledScript
-
-