- java.lang.Object
-
- javax.script.AbstractScriptEngine
-
- jdk.nashorn.api.scripting.NashornScriptEngine
-
- 实现的所有接口
-
Compilable
,Invocable
,ScriptEngine
@Deprecated(since="11", forRemoval=true) public final class NashornScriptEngine extends AbstractScriptEngine implements Compilable, Invocable
Deprecated, for removal: This API element is subject to removal in a future version.Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.适用于Nashorn的JSR-223兼容脚本引擎。 实例不是直接创建的,而是通过ScriptEngineFactory.getScriptEngine()
返回的。 请注意,此引擎实现了Compilable
和Invocable
接口,允许有效的预编译和重复执行脚本。- 从以下版本开始:
- 1.8u40
- 另请参见:
-
NashornScriptEngineFactory
-
-
字段汇总
字段 变量和类型 字段 描述 static String
NASHORN_GLOBAL
不推荐使用,要删除:此API元素将在以后的版本中删除。用于将Nashorn全局对象镜像与任意Bindings实例关联的键。-
声明的属性在类 javax.script.AbstractScriptEngine
context
-
Fields declared in interface javax.script.ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
-
-
方法摘要
-
声明方法的类 javax.script.AbstractScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext
-
声明方法的类 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
声明方法的接口 javax.script.Compilable
compile, compile
-
声明方法的接口 javax.script.Invocable
getInterface, getInterface, invokeFunction, invokeMethod
-
声明方法的接口 javax.script.ScriptEngine
createBindings, eval, eval, getFactory
-
-