Interface GremlinScriptEngine
-
- All Superinterfaces:
ScriptEngine
- All Known Implementing Classes:
GremlinLangScriptEngine
public interface GremlinScriptEngine extends ScriptEngine
AGremlinScriptEngineis an extension of the standardScriptEngineand 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 StringHIDDEN_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.Admineval(Bytecode bytecode, String traversalSource)Traversal.Admineval(Bytecode bytecode, Bindings bindings, String traversalSource)GremlinScriptEngineFactorygetFactory()-
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:
getFactoryin 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
EvaluatesTraversalBytecodewith the specifiedBindings. TheseBindingssupplied to this method will be merged with global engine bindings and override them where keys match.- Throws:
ScriptException
-
-