jdk.nashorn.api.scripting (Java SE 12 & JDK 12 )
Keywords: jdk.nashorn.api.scripting package

Module jdk.scripting.nashorn

# Package jdk.nashorn.api.scripting

This package provides the `javax.script` integration, which is the preferred way to use Nashorn. You will ordinarily do this to obtain an instance of a Nashorn script engine:

     import javax.script.*;
     ...
     ScriptEngine nashornEngine = new ScriptEngineManager().getEngineByName("Nashorn");

Nashorn script engines implement the optional `Invocable` and `Compilable` interfaces, allowing for efficient pre-compilation and repeated execution of scripts. In addition, this package provides nashorn specific extension classes, interfaces and methods. See `NashornScriptEngineFactory` for further details.

Since:
  1.8u40

- Interface Summary
  Interface | Description
  --- | ---
  ClassFilter | 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.
  JSObject | 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.

- Class Summary
  Class | Description
  --- | ---
  AbstractJSObject | 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.
  NashornScriptEngine | 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.
  NashornScriptEngineFactory | 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.
  ScriptObjectMirror | 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.
  ScriptUtils | 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.
  URLReader | 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.

- Exception Summary
  Exception | Description
  --- | ---
  NashornException | 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.