javax.scriptintegration, 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
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.
Interface Summary Interface Description ClassFilterClass filter (optional) to be used by nashorn script engine. JSObjectThis interface can be implemented by an arbitrary Java class.
Class Summary Class Description AbstractJSObjectThis is the base class for nashorn ScriptObjectMirror class. NashornScriptEngineJSR-223 compliant script engine for Nashorn. NashornScriptEngineFactoryJSR-223 compliant script engine factory for Nashorn. ScriptObjectMirrorMirror object that wraps a given Nashorn Script object. ScriptUtilsUtilities that are to be called from script code. URLReaderA Reader that reads from a URL.
Exception Summary Exception Description NashornExceptionThis is base exception for all Nashorn exceptions.