Uses of Interface
javax.script.Bindings
Packages that use Bindings
包
描述
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 Bindings修饰符和类Class描述classA simple implementation of Bindings backed by aHashMapor some other specifiedMap.Fields in javax.script declared as Bindings修饰符和类Field描述protected BindingsSimpleScriptContext.engineScopeThis is the engine scope bindings.protected BindingsSimpleScriptContext.globalScopeThis is the global scope bindings.Methods in javax.script that return Bindings修饰符和类方法描述ScriptEngine.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 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.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 BindingsModifierConstructor描述Creates a new instance using the specifiedBindingsas theENGINE_SCOPEBindingsin the protectedcontextfield.