Class NashornScriptEngine

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 through ScriptEngineFactory.getScriptEngine(). Note that this engine implements the Compilable and Invocable interfaces, allowing for efficient precompilation and repeated execution of scripts.
Since:
1.8u40
See Also:
NashornScriptEngineFactory
  • Field Details

    • 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