Uses of Interface
javax.script.ScriptEngine
Package | Description |
---|---|
javax.script |
The scripting API consists of interfaces and classes that define
Java™ Scripting Engines and provides
a framework for their use in Java applications.
|
jdk.nashorn.api.scripting |
This package provides the
javax.script integration, which is the preferred way to use Nashorn. |
-
Uses of ScriptEngine in javax.script
Classes in javax.script that implement ScriptEngine Modifier and Type Class Description class
AbstractScriptEngine
Provides a standard implementation for several of the variants of theeval
method.Methods in javax.script that return ScriptEngine Modifier and Type Method Description abstract ScriptEngine
CompiledScript. getEngine()
Returns theScriptEngine
whosecompile
method created thisCompiledScript
.ScriptEngine
ScriptEngineManager. getEngineByExtension(String extension)
Look up and create aScriptEngine
for a given extension.ScriptEngine
ScriptEngineManager. getEngineByMimeType(String mimeType)
Look up and create aScriptEngine
for a given mime type.ScriptEngine
ScriptEngineManager. getEngineByName(String shortName)
Looks up and creates aScriptEngine
for a given name.ScriptEngine
ScriptEngineFactory. getScriptEngine()
Returns an instance of theScriptEngine
associated with thisScriptEngineFactory
. -
Uses of ScriptEngine in jdk.nashorn.api.scripting
Classes in jdk.nashorn.api.scripting that implement ScriptEngine Modifier and Type Class Description class
NashornScriptEngine
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.Methods in jdk.nashorn.api.scripting that return ScriptEngine Modifier and Type Method Description ScriptEngine
NashornScriptEngineFactory. getScriptEngine(ClassLoader appLoader)
Deprecated, for removal: This API element is subject to removal in a future version.Create a new Script engine initialized with the given class loader.ScriptEngine
NashornScriptEngineFactory. getScriptEngine(String... args)
Deprecated, for removal: This API element is subject to removal in a future version.Create a new Script engine initialized with the given arguments.ScriptEngine
NashornScriptEngineFactory. getScriptEngine(String[] args, ClassLoader appLoader)
Deprecated, for removal: This API element is subject to removal in a future version.Create a new Script engine initialized with the given arguments and the given class loader.ScriptEngine
NashornScriptEngineFactory. getScriptEngine(String[] args, ClassLoader appLoader, ClassFilter classFilter)
Deprecated, for removal: This API element is subject to removal in a future version.Create a new Script engine initialized with the given arguments, class loader and class filter.ScriptEngine
NashornScriptEngineFactory. getScriptEngine(ClassFilter classFilter)
Deprecated, for removal: This API element is subject to removal in a future version.Create a new Script engine initialized with the given class filter.