public interface GremlinScriptEngine extends ScriptEngine
GremlinScriptEngine is an extension of the standard ScriptEngine and provides some specific
methods that are important to the TinkerPop environment.| Modifier and Type | Field and Description |
|---|---|
static String |
HIDDEN_G |
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME| Modifier and Type | Method and Description |
|---|---|
Traversal.Admin |
eval(Bytecode bytecode,
Bindings bindings,
String traversalSource)
|
default Traversal.Admin |
eval(Bytecode bytecode,
String traversalSource)
|
GremlinScriptEngineFactory |
getFactory() |
createBindings, eval, eval, eval, eval, eval, eval, get, getBindings, getContext, put, setBindings, setContextstatic final String HIDDEN_G
GremlinScriptEngineFactory getFactory()
getFactory in interface ScriptEnginedefault Traversal.Admin eval(Bytecode bytecode, String traversalSource) throws ScriptException
bytecode - of the traversal to executetraversalSource - to execute the bytecode against which should be in the available bindings.ScriptExceptionTraversal.Admin eval(Bytecode bytecode, Bindings bindings, String traversalSource) throws ScriptException
Traversal Bytecode with the specified Bindings. These Bindings
supplied to this method will be merged with global engine bindings and override them where keys match.ScriptExceptionCopyright © 2013–2022 Apache Software Foundation. All rights reserved.