- java.lang.Object
- javax.script.AbstractScriptEngine
- jdk.nashorn.api.scripting.NashornScriptEngine
- All Implemented Interfaces:
Compilable
,Invocable
,ScriptEngine
@Deprecated(since="11", forRemoval=true) public final class NashornScriptEngine extends AbstractScriptEngine implements Compilable, Invocable
Deprecated, for removal: This API element is subject to removal in a future version.Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.JSR-223 compliant script engine for Nashorn. Instances are not created directly, but rather returned throughScriptEngineFactory.getScriptEngine()
. Note that this engine implements theCompilable
andInvocable
interfaces, allowing for efficient precompilation and repeated execution of scripts.- Since:
- 1.8u40
- See Also:
NashornScriptEngineFactory
Field Summary
Fields Modifier and Type Field Description static String
NASHORN_GLOBAL
Deprecated, for removal: This API element is subject to removal in a future version.Key used to associate Nashorn global object mirror with arbitrary Bindings instance.Fields declared in class javax.script.AbstractScriptEngine
context
Fields declared in interface javax.script.ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
Method Summary
Methods declared in class javax.script.AbstractScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface javax.script.Compilable
compile, compile
Methods declared in interface javax.script.Invocable
getInterface, getInterface, invokeFunction, invokeMethod
Methods declared in interface javax.script.ScriptEngine
createBindings, eval, eval, getFactory
Field Detail
NASHORN_GLOBAL
public static final String NASHORN_GLOBAL
Deprecated, for removal: This API element is subject to removal in a future version.Key used to associate Nashorn global object mirror with arbitrary Bindings instance.- See Also:
- Constant Field Values