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 ScriptContext
public Object getAttribute(String name)
getAttribute
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 void setAttribute(String name, Object value, int scope)
setAttribute
in interface ScriptContext
public int getAttributesScope(String name)
getAttributesScope
in interface ScriptContext
public Bindings getBindings(int scope)
getBindings
in interface ScriptContext
public List<Integer> getScopes()
getScopes
in interface ScriptContext
public Writer getWriter()
getWriter
in interface ScriptContext
public Reader getReader()
getReader
in interface ScriptContext
public void setReader(Reader reader)
setReader
in interface ScriptContext
public void setWriter(Writer writer)
setWriter
in interface ScriptContext
public Writer getErrorWriter()
getErrorWriter
in interface ScriptContext
public void setErrorWriter(Writer writer)
setErrorWriter
in interface ScriptContext
Copyright © 2013–2023 Apache Software Foundation. All rights reserved.