public class RhinoJavaScriptEngine extends org.apache.sling.scripting.api.AbstractSlingScriptEngine implements Compilable
contextARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME| Constructor and Description |
|---|
RhinoJavaScriptEngine(ScriptEngineFactory factory,
org.mozilla.javascript.Scriptable rootScope,
org.apache.sling.scripting.api.ScriptCache scriptCache) |
| Modifier and Type | Method and Description |
|---|---|
CompiledScript |
compile(Reader scriptReader) |
CompiledScript |
compile(String script) |
Object |
eval(Reader scriptReader,
ScriptContext scriptContext) |
createBindings, eval, getFactoryeval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContextpublic RhinoJavaScriptEngine(ScriptEngineFactory factory, org.mozilla.javascript.Scriptable rootScope, org.apache.sling.scripting.api.ScriptCache scriptCache)
public CompiledScript compile(String script) throws ScriptException
compile in interface CompilableScriptExceptionpublic CompiledScript compile(Reader scriptReader) throws ScriptException
compile in interface CompilableScriptExceptionpublic Object eval(Reader scriptReader, ScriptContext scriptContext) throws ScriptException
eval in interface ScriptEngineScriptExceptionCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.