- java.lang.Object
-
- javax.script.AbstractScriptEngine
-
- jdk.nashorn.api.scripting.NashornScriptEngine
-
- All Implemented Interfaces:
Compilable
,Invocable
,ScriptEngine
public final class NashornScriptEngine extends AbstractScriptEngine implements Compilable, Invocable
JSR-223 compliant script engine for Nashorn. Instances are not created directly, but rather returned throughScriptEngineFactory.getScriptEngine()
. Note that this engine implements theCompilable
andInvocable
interfaces, allowing for efficient precompilation and repeated execution of scripts.- Since:
- 1.8u40
- See Also:
NashornScriptEngineFactory
-
-
Field Summary
Fields Modifier and Type Field Description static String
NASHORN_GLOBAL
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
-
-
Method Summary
-
Methods declared in class javax.script.AbstractScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext
-
Methods declared in interface javax.script.Compilable
compile, compile
-
Methods declared in interface javax.script.Invocable
getInterface, getInterface, invokeFunction, invokeMethod
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods declared in interface javax.script.ScriptEngine
createBindings, eval, eval, getFactory
-
-
-
-
Field Detail
-
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
-
-