public final class PlaceholderScriptEngine extends AbstractScriptEngine
GraalJSEngineFactory when JavaScript support is
not installed. Unfortunately, there is no JavaDoc-compliant way for ScriptEngineFactory
to claim that it is not able to provide ScriptEngine (because of a missing dependency).
Hence, we provide this minimal compliant implementation instead. An encounter of this engine is a
sign of a misconfiguration. Users should not see this engine when JavaScript support is installed
properly.contextARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME| Modifier and Type | Method and Description |
|---|---|
Bindings |
createBindings() |
Object |
eval(Reader reader,
ScriptContext ctx) |
Object |
eval(String script,
ScriptContext ctx) |
ScriptEngineFactory |
getFactory() |
void |
setBindings(Bindings bindings,
int scope) |
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setContextpublic void setBindings(Bindings bindings, int scope)
setBindings in interface ScriptEnginesetBindings in class AbstractScriptEnginepublic Object eval(String script, ScriptContext ctx) throws ScriptException
ScriptExceptionpublic Object eval(Reader reader, ScriptContext ctx) throws ScriptException
ScriptExceptionpublic Bindings createBindings()
public ScriptEngineFactory getFactory()