Module org.openjdk.nashorn
Package org.openjdk.nashorn.api.scripting
package org.openjdk.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
-
ClassDescriptionThis is the base class for nashorn ScriptObjectMirror class.Class filter (optional) to be used by nashorn script engine.This interface can be implemented by an arbitrary Java class.This is base exception for all Nashorn exceptions.JSR-223 compliant script engine for Nashorn.JSR-223 compliant script engine factory for Nashorn.Mirror object that wraps a given Nashorn Script object.Utilities that are to be called from script code.A Reader that reads from a URL.