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.
Interface | Description |
---|---|
ClassFilter |
Class filter (optional) to be used by nashorn script engine.
|
JSObject |
This interface can be implemented by an arbitrary Java class.
|
Class | Description |
---|---|
AbstractJSObject |
This is the base class for nashorn ScriptObjectMirror class.
|
NashornScriptEngine |
JSR-223 compliant script engine for Nashorn.
|
NashornScriptEngineFactory |
JSR-223 compliant script engine factory for Nashorn.
|
ScriptObjectMirror |
Mirror object that wraps a given Nashorn Script object.
|
ScriptUtils |
Utilities that are to be called from script code.
|
URLReader |
A Reader that reads from a URL.
|
Exception | Description |
---|---|
NashornException |
This is base exception for all Nashorn exceptions.
|
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2014, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b161-1