Interface GremlinScriptEngine
-
- All Superinterfaces:
ScriptEngine
- All Known Implementing Classes:
GremlinLangScriptEngine
public interface GremlinScriptEngine extends ScriptEngine
AGremlinScriptEngine
is an extension of the standardScriptEngine
and provides some specific methods that are important to the TinkerPop environment.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
-
Field Summary
Fields Modifier and Type Field Description static String
HIDDEN_G
-
Fields inherited from interface javax.script.ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Traversal.Admin
eval(Bytecode bytecode, String traversalSource)
Traversal.Admin
eval(Bytecode bytecode, Bindings bindings, String traversalSource)
GremlinScriptEngineFactory
getFactory()
-
Methods inherited from interface javax.script.ScriptEngine
createBindings, eval, eval, eval, eval, eval, eval, get, getBindings, getContext, put, setBindings, setContext
-
-
-
-
Field Detail
-
HIDDEN_G
static final String HIDDEN_G
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFactory
GremlinScriptEngineFactory getFactory()
- Specified by:
getFactory
in interfaceScriptEngine
-
eval
default Traversal.Admin eval(Bytecode bytecode, String traversalSource) throws ScriptException
- Parameters:
bytecode
- of the traversal to executetraversalSource
- to execute the bytecode against which should be in the available bindings.- Throws:
ScriptException
-
eval
Traversal.Admin eval(Bytecode bytecode, Bindings bindings, String traversalSource) throws ScriptException
EvaluatesTraversal
Bytecode
with the specifiedBindings
. TheseBindings
supplied to this method will be merged with global engine bindings and override them where keys match.- Throws:
ScriptException
-
-