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.contextARGV, 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)
|
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 Traversal.Admin eval(Bytecode bytecode, Bindings bindings) 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 Object eval(String script, ScriptContext context) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic Object eval(Reader reader, ScriptContext context) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic Bindings createBindings()
createBindings in interface ScriptEngineCopyright © 2013–2017 Apache Software Foundation. All rights reserved.