Uses of Interface
javax.script.Bindings
-
Packages that use Bindings 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 thejavax.scriptintegration, which is the preferred way to use Nashorn. -
-
Uses of Bindings in javax.script
Classes in javax.script that implement Bindings Modifier and Type Class Description classSimpleBindingsA simple implementation of Bindings backed by aHashMapor some other specifiedMap.Fields in javax.script declared as Bindings Modifier and Type Field Description protected BindingsSimpleScriptContext. engineScopeThis is the engine scope bindings.protected BindingsSimpleScriptContext. globalScopeThis is the global scope bindings.Methods in javax.script that return Bindings Modifier and Type Method Description BindingsScriptEngine. createBindings()Returns an uninitializedBindings.BindingsAbstractScriptEngine. getBindings(int scope)Returns theBindingswith the specified scope value in the protectedcontextfield.BindingsScriptContext. getBindings(int scope)Gets theBindingsassociated with the given scope in thisScriptContext.BindingsScriptEngine. getBindings(int scope)Returns a scope of named values.BindingsScriptEngineManager. getBindings()getBindingsreturns the value of theglobalScopefield.BindingsSimpleScriptContext. getBindings(int scope)Returns the value of theengineScopefield if specified scope isENGINE_SCOPE.Methods in javax.script with parameters of type Bindings Modifier and Type Method Description ObjectAbstractScriptEngine. eval(Reader reader, Bindings bindings)eval(Reader, Bindings)calls the abstracteval(Reader, ScriptContext)method, passing it aScriptContextwhose Reader, Writers and Bindings for scopes other thatENGINE_SCOPEare identical to those members of the protectedcontextfield.ObjectAbstractScriptEngine. eval(String script, Bindings bindings)Same aseval(Reader, Bindings)except that the abstracteval(String, ScriptContext)is used.ObjectCompiledScript. eval(Bindings bindings)Executes the program stored in theCompiledScriptobject using the suppliedBindingsof attributes as theENGINE_SCOPEof the associatedScriptEngineduring script execution.ObjectScriptEngine. eval(Reader reader, Bindings n)Same aseval(String, Bindings)except that the source of the script is provided as aReader.ObjectScriptEngine. eval(String script, Bindings n)Executes the script using theBindingsargument as theENGINE_SCOPEBindingsof theScriptEngineduring the script execution.protected ScriptContextAbstractScriptEngine. getScriptContext(Bindings nn)Returns aSimpleScriptContext.voidAbstractScriptEngine. setBindings(Bindings bindings, int scope)Sets theBindingswith the corresponding scope value in thecontextfield.voidScriptContext. setBindings(Bindings bindings, int scope)Associates aBindingsinstance with a particular scope in thisScriptContext.voidScriptEngine. setBindings(Bindings bindings, int scope)Sets a scope of named values to be used by scripts.voidScriptEngineManager. setBindings(Bindings bindings)setBindingsstores the specifiedBindingsin theglobalScopefield.voidSimpleScriptContext. setBindings(Bindings bindings, int scope)Sets aBindingsof attributes for the given scope.Constructors in javax.script with parameters of type Bindings Constructor Description AbstractScriptEngine(Bindings n)Creates a new instance using the specifiedBindingsas theENGINE_SCOPEBindingsin the protectedcontextfield. -
Uses of Bindings in jdk.nashorn.api.scripting
Classes in jdk.nashorn.api.scripting that implement Bindings Modifier and Type Class Description classScriptObjectMirrorDeprecated, 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.
-