Interface GremlinScriptEngine
- 
- All Superinterfaces:
- ScriptEngine
 - All Known Implementing Classes:
- GremlinGroovyScriptEngine,- GremlinLangScriptEngine,- MockGremlinScriptEngine
 
 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 SummaryFields Modifier and Type Field Description static StringHIDDEN_G- 
Fields inherited from interface javax.script.ScriptEngineARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
 
- 
 - 
Method SummaryAll 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.ScriptEnginecreateBindings, eval, eval, eval, eval, eval, eval, get, getBindings, getContext, put, setBindings, setContext
 
- 
 
- 
- 
- 
Field Detail- 
HIDDEN_Gstatic final String HIDDEN_G - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getFactoryGremlinScriptEngineFactory getFactory() - Specified by:
- getFactoryin interface- ScriptEngine
 
 - 
evaldefault Traversal.Admin eval(Bytecode bytecode, String traversalSource) throws ScriptException - Parameters:
- bytecode- of the traversal to execute
- traversalSource- to execute the bytecode against which should be in the available bindings.
- Throws:
- ScriptException
 
 - 
evalTraversal.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
 
 
- 
 
-