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 |
---|---|
default Traversal.Admin |
eval(Bytecode bytecode)
Deprecated.
As of release 3.2.7, replaced by
eval(Bytecode, String) . |
default Traversal.Admin |
eval(Bytecode bytecode,
Bindings bindings)
Deprecated.
As of release 3.2.7, replaced by
eval(Bytecode, Bindings, String) . |
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, setContext
static final String HIDDEN_G
GremlinScriptEngineFactory getFactory()
getFactory
in interface ScriptEngine
@Deprecated default Traversal.Admin eval(Bytecode bytecode) throws ScriptException
eval(Bytecode, String)
.Traversal
Bytecode
. This method assumes that the traversal source to execute the
bytecode against is in the global bindings and is named "g".ScriptException
@Deprecated default Traversal.Admin eval(Bytecode bytecode, Bindings bindings) throws ScriptException
eval(Bytecode, Bindings, String)
.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. This
method assumes that the traversal source to execute against is named "g".ScriptException
default 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.ScriptException
Traversal.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.ScriptException
Copyright © 2013–2019 Apache Software Foundation. All rights reserved.