public class GremlinScriptContext extends Object implements ScriptContext
ScriptContext that doesn't create new instances of Reader and Writer classes on
initialization.ENGINE_SCOPE, GLOBAL_SCOPE| Constructor and Description |
|---|
GremlinScriptContext(Reader in,
Writer out,
Writer error)
Create a
GremlinScriptContext. |
| 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) |
public void setBindings(Bindings bindings, int scope)
setBindings in interface ScriptContextpublic Object getAttribute(String name)
getAttribute in interface ScriptContextpublic Object getAttribute(String name, int scope)
getAttribute in interface ScriptContextpublic Object removeAttribute(String name, int scope)
removeAttribute in interface ScriptContextpublic void setAttribute(String name, Object value, int scope)
setAttribute in interface ScriptContextpublic int getAttributesScope(String name)
getAttributesScope in interface ScriptContextpublic Bindings getBindings(int scope)
getBindings in interface ScriptContextpublic List<Integer> getScopes()
getScopes in interface ScriptContextpublic Writer getWriter()
getWriter in interface ScriptContextpublic Reader getReader()
getReader in interface ScriptContextpublic void setReader(Reader reader)
setReader in interface ScriptContextpublic void setWriter(Writer writer)
setWriter in interface ScriptContextpublic Writer getErrorWriter()
getErrorWriter in interface ScriptContextpublic void setErrorWriter(Writer writer)
setErrorWriter in interface ScriptContextCopyright © 2013–2017 Apache Software Foundation. All rights reserved.