Class NashornScriptEngine
- java.lang.Object
 -  
- javax.script.AbstractScriptEngine
 -  
- jdk.nashorn.api.scripting.NashornScriptEngine
 
 
 
- All Implemented Interfaces:
 - 
Compilable,Invocable,ScriptEngine 
@Deprecated(since="11",
            forRemoval=true)
public final class NashornScriptEngine
extends AbstractScriptEngine
implements Compilable, Invocable JSR-223 compliant script engine for Nashorn. Instances are not created directly, but rather returned through ScriptEngineFactory.getScriptEngine(). Note that this engine implements the Compilable and Invocable interfaces, allowing for efficient precompilation and repeated execution of scripts.
- Since:
 - 1.8u40
 - See Also:
 NashornScriptEngineFactory
Fields
| Modifier and Type | Field | Description | 
|---|---|---|
static String |  NASHORN_GLOBAL |    Deprecated, for removal: This API element is subject to removal in a future version. Key used to associate Nashorn global object mirror with arbitrary Bindings instance.  |  
Fields declared in class javax.script.AbstractScriptEngine
context  Fields declared in interface javax.script.ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME  Methods
Methods declared in class javax.script.AbstractScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext  Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait  Methods declared in interface javax.script.Compilable
compile, compile  Methods declared in interface javax.script.Invocable
getInterface, getInterface, invokeFunction, invokeMethod  Methods declared in interface javax.script.ScriptEngine
createBindings, eval, eval, getFactory  Fields
NASHORN_GLOBAL
public static final String NASHORN_GLOBAL
Key used to associate Nashorn global object mirror with arbitrary Bindings instance.
- See Also:
 - Constant Field Values
 
    © 1993, 2020, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/11/docs/api/jdk.scripting.nashorn/jdk/nashorn/api/scripting/NashornScriptEngine.html