public class SimpleScriptContext extends Object implements ScriptContext
| Modifier and Type | Field and Description |
|---|---|
protected Bindings |
engineScope |
protected Writer |
errorWriter |
protected Bindings |
globalScope |
protected Reader |
reader |
protected Writer |
writer |
ENGINE_SCOPE, GLOBAL_SCOPE| Constructor and Description |
|---|
SimpleScriptContext() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name) |
Object |
getAttribute(String name,
int scope) |
int |
getAttributesScope(String name) |
Bindings |
getBindings(int scope) |
Writer |
getErrorWriter() |
Reader |
getReader() |
List<Integer> |
getScopes() |
Writer |
getWriter() |
Object |
removeAttribute(String name,
int scope) |
void |
setAttribute(String name,
Object value,
int scope) |
void |
setBindings(Bindings bindings,
int scope) |
void |
setErrorWriter(Writer writer) |
void |
setReader(Reader reader) |
void |
setWriter(Writer writer) |
protected Bindings globalScope
protected Bindings engineScope
protected Writer writer
protected Writer errorWriter
protected Reader reader
public void setBindings(Bindings bindings, int scope)
setBindings in interface ScriptContextpublic Bindings getBindings(int scope)
getBindings in interface ScriptContextpublic void setAttribute(String name, Object value, int scope)
setAttribute in interface ScriptContextpublic Object getAttribute(String name, int scope)
getAttribute in interface ScriptContextpublic Object removeAttribute(String name, int scope)
removeAttribute in interface ScriptContextpublic Object getAttribute(String name)
getAttribute in interface ScriptContextpublic int getAttributesScope(String name)
getAttributesScope in interface ScriptContextpublic List<Integer> getScopes()
getScopes in interface ScriptContextpublic Writer getWriter()
getWriter in interface ScriptContextpublic Writer getErrorWriter()
getErrorWriter in interface ScriptContextpublic void setWriter(Writer writer)
setWriter in interface ScriptContextpublic void setErrorWriter(Writer writer)
setErrorWriter in interface ScriptContextpublic Reader getReader()
getReader in interface ScriptContextpublic void setReader(Reader reader)
setReader in interface ScriptContextCopyright © 2006-2013 LiveTribe. All Rights Reserved.