|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScriptContext
Context information from an engine to the bindings.
| Field Summary | |
|---|---|
static int |
ENGINE_SCOPE
|
static int |
GLOBAL_SCOPE
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Gets an attribute in the lowest scope. |
java.lang.Object |
getAttribute(java.lang.String name,
int scope)
Gets an attribute in a scope. |
int |
getAttributesScope(java.lang.String name)
Gets an attribute in the lowest scope. |
Bindings |
getBindings(int scope)
Returns the bindings associated with a scope. |
java.io.Writer |
getErrorWriter()
Returns the script's error writer. |
java.io.Reader |
getReader()
Returns a reader for input. |
java.util.List<java.lang.Integer> |
getScopes()
Returns the available scopes. |
java.io.Writer |
getWriter()
Returns the script's writer. |
java.lang.Object |
removeAttribute(java.lang.String name,
int scope)
Gets an attribute in a scope. |
void |
setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
Sets an attribute in a scope. |
void |
setBindings(Bindings bindings,
int scope)
Associates a bindings with a scope. |
void |
setErrorWriter(java.io.Writer writer)
Returns the script's error writer. |
void |
setReader(java.io.Reader reader)
Sets a reader for input. |
void |
setWriter(java.io.Writer writer)
Sets the script's writer. |
| Field Detail |
|---|
static final int ENGINE_SCOPE
static final int GLOBAL_SCOPE
| Method Detail |
|---|
void setBindings(Bindings bindings,
int scope)
bindings - the bindings to assignscope - the scope codeBindings getBindings(int scope)
void setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
java.lang.Object getAttribute(java.lang.String name,
int scope)
java.lang.Object removeAttribute(java.lang.String name,
int scope)
java.lang.Object getAttribute(java.lang.String name)
int getAttributesScope(java.lang.String name)
java.io.Reader getReader()
void setReader(java.io.Reader reader)
java.io.Writer getWriter()
void setWriter(java.io.Writer writer)
java.io.Writer getErrorWriter()
void setErrorWriter(java.io.Writer writer)
java.util.List<java.lang.Integer> getScopes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||