Uses of Interface
javax.script.Bindings
Packages that use Bindings
Package
Description
The scripting API consists of interfaces and classes that define
Java Scripting Engines and provides
a framework for their use in Java applications.
-
Uses of Bindings in javax.script
Classes in javax.script that implement BindingsModifier and TypeClassDescriptionclassA simple implementation of Bindings backed by aHashMapor some other specifiedMap.Fields in javax.script declared as BindingsModifier and TypeFieldDescriptionprotected BindingsSimpleScriptContext.engineScopeThis is the engine scope bindings.protected BindingsSimpleScriptContext.globalScopeThis is the global scope bindings.Methods in javax.script that return BindingsModifier and TypeMethodDescriptionScriptEngine.createBindings()Returns an uninitializedBindings.AbstractScriptEngine.getBindings(int scope) Returns theBindingswith the specified scope value in the protectedcontextfield.ScriptContext.getBindings(int scope) Gets theBindingsassociated with the given scope in thisScriptContext.ScriptEngine.getBindings(int scope) Returns a scope of named values.ScriptEngineManager.getBindings()getBindingsreturns the value of theglobalScopefield.SimpleScriptContext.getBindings(int scope) Returns the value of theengineScopefield if specified scope isENGINE_SCOPE.Methods in javax.script with parameters of type BindingsModifier and TypeMethodDescriptioneval(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.Same aseval(Reader, Bindings)except that the abstracteval(String, ScriptContext)is used.Executes the program stored in theCompiledScriptobject using the suppliedBindingsof attributes as theENGINE_SCOPEof the associatedScriptEngineduring script execution.Same aseval(String, Bindings)except that the source of the script is provided as aReader.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 BindingsModifierConstructorDescriptionCreates a new instance using the specifiedBindingsas theENGINE_SCOPEBindingsin the protectedcontextfield.