Lines Matching defs:scope
108 * Returns the <code>Bindings</code> with the specified scope value in
111 * @param scope The specified scope
115 * @throws IllegalArgumentException if the value of scope is
118 public Bindings getBindings(int scope) {
120 if (scope == ScriptContext.GLOBAL_SCOPE) {
122 } else if (scope == ScriptContext.ENGINE_SCOPE) {
125 throw new IllegalArgumentException("Invalid scope value.");
130 * Sets the <code>Bindings</code> with the corresponding scope value in the
134 * @param scope The specified scope.
136 * @throws IllegalArgumentException if the value of scope is
138 * @throws NullPointerException if the bindings is null and the scope is
141 public void setBindings(Bindings bindings, int scope) {
143 if (scope == ScriptContext.GLOBAL_SCOPE) {
145 } else if (scope == ScriptContext.ENGINE_SCOPE) {
148 throw new IllegalArgumentException("Invalid scope value.");
301 throw new NullPointerException("Engine scope Bindings may not be null.");