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.
- 从以下版本开始:
- 1.8u40
-
接口摘要 接口 描述 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. -
类摘要 类 描述 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. -
异常摘要 异常 描述 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.