public class MockGremlinScriptEngine extends AbstractScriptEngine implements GremlinScriptEngine
GremlinScriptEngine which can be used to help test plugin
implementations which don't have reference to a GremlinScriptEngine as a dependency.contextHIDDEN_GARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME| Constructor and Description |
|---|
MockGremlinScriptEngine() |
| Modifier and Type | Method and Description |
|---|---|
Bindings |
createBindings() |
Traversal.Admin |
eval(Bytecode bytecode,
Bindings bindings,
String traversalSource)
|
Object |
eval(Reader reader,
ScriptContext context) |
Object |
eval(String script,
ScriptContext context) |
GremlinScriptEngineFactory |
getFactory() |
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaleval, eval, eval, eval, get, getBindings, getContext, put, setBindings, setContextpublic GremlinScriptEngineFactory getFactory()
getFactory in interface ScriptEnginegetFactory in interface GremlinScriptEnginepublic Object eval(String script, ScriptContext context) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic Object eval(Reader reader, ScriptContext context) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic Traversal.Admin eval(Bytecode bytecode, Bindings bindings, String traversalSource) throws ScriptException
GremlinScriptEngineTraversal Bytecode with the specified Bindings. These Bindings
supplied to this method will be merged with global engine bindings and override them where keys match.eval in interface GremlinScriptEngineScriptExceptionpublic Bindings createBindings()
createBindings in interface ScriptEngineCopyright © 2013–2020 Apache Software Foundation. All rights reserved.