Class MockGremlinScriptEngine
java.lang.Object
javax.script.AbstractScriptEngine
org.apache.tinkerpop.gremlin.jsr223.MockGremlinScriptEngine
- All Implemented Interfaces:
ScriptEngine,GremlinScriptEngine
This is a "do nothing" implementation of the
GremlinScriptEngine which can be used to help test plugin
implementations which don't have reference to a GremlinScriptEngine as a dependency.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
-
Field Summary
Fields inherited from class javax.script.AbstractScriptEngine
contextFields inherited from interface org.apache.tinkerpop.gremlin.jsr223.GremlinScriptEngine
HIDDEN_GFields inherited from interface javax.script.ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneval(Reader reader, ScriptContext context) eval(String script, ScriptContext context) Methods inherited from class javax.script.AbstractScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.script.ScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, put, setBindings, setContext
-
Constructor Details
-
MockGremlinScriptEngine
public MockGremlinScriptEngine()
-
-
Method Details
-
getFactory
- Specified by:
getFactoryin interfaceGremlinScriptEngine- Specified by:
getFactoryin interfaceScriptEngine
-
eval
- Specified by:
evalin interfaceScriptEngine- Throws:
ScriptException
-
eval
- Specified by:
evalin interfaceScriptEngine- Throws:
ScriptException
-
createBindings
- Specified by:
createBindingsin interfaceScriptEngine
-