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 ScriptContext
public Bindings getBindings(int scope)
getBindings
in interface ScriptContext
public void setAttribute(String name, Object value, int scope)
setAttribute
in interface ScriptContext
public Object getAttribute(String name, int scope)
getAttribute
in interface ScriptContext
public Object removeAttribute(String name, int scope)
removeAttribute
in interface ScriptContext
public Object getAttribute(String name)
getAttribute
in interface ScriptContext
public int getAttributesScope(String name)
getAttributesScope
in interface ScriptContext
public List<Integer> getScopes()
getScopes
in interface ScriptContext
public Writer getWriter()
getWriter
in interface ScriptContext
public Writer getErrorWriter()
getErrorWriter
in interface ScriptContext
public void setWriter(Writer writer)
setWriter
in interface ScriptContext
public void setErrorWriter(Writer writer)
setErrorWriter
in interface ScriptContext
public Reader getReader()
getReader
in interface ScriptContext
public void setReader(Reader reader)
setReader
in interface ScriptContext
Copyright © 2006-2013 LiveTribe. All Rights Reserved.