Methods Summary |
---|
public java.lang.Object | getAttribute(java.lang.String name, int scope)Gets the value of an attribute in a given scope.
|
public java.lang.Object | getAttribute(java.lang.String name)Retrieves the value of the attribute with the given name in
the scope occurring earliest in the search order. The order
is determined by the numeric value of the scope parameter (lowest
scope values first.)
|
public int | getAttributesScope(java.lang.String name)Get the lowest scope in which an attribute is defined.
|
public javax.script.Bindings | getBindings(int scope)Gets the Bindings associated with the given scope in this
ScriptContext .
|
public java.io.Writer | getErrorWriter()Returns the Writer used to display error output.
|
public java.io.Reader | getReader()Returns a Reader to be used by the script to read
input.
|
public java.util.List | getScopes()Returns immutable List of all the valid values for
scope in the ScriptContext.
|
public java.io.Writer | getWriter()Returns the Writer for scripts to use when displaying output.
|
public java.lang.Object | removeAttribute(java.lang.String name, int scope)Remove an attribute in a given scope.
|
public void | setAttribute(java.lang.String name, java.lang.Object value, int scope)Sets the value of an attribute in a given scope.
|
public void | setBindings(javax.script.Bindings bindings, int scope)Associates a Bindings instance with a particular scope in this
ScriptContext . Calls to the getAttribute and
setAttribute methods must map to the get and
put methods of the Bindings for the specified scope.
|
public void | setErrorWriter(java.io.Writer writer)Sets the Writer used to display error output.
|
public void | setReader(java.io.Reader reader)Sets the Reader for scripts to read input
.
|
public void | setWriter(java.io.Writer writer)Sets the Writer for scripts to use when displaying output.
|