Class MockGremlinScriptEngine
- java.lang.Object
- 
- javax.script.AbstractScriptEngine
- 
- org.apache.tinkerpop.gremlin.jsr223.MockGremlinScriptEngine
 
 
- 
- All Implemented Interfaces:
- ScriptEngine,- GremlinScriptEngine
 
 public class MockGremlinScriptEngine extends AbstractScriptEngine implements GremlinScriptEngine This is a "do nothing" implementation of theGremlinScriptEnginewhich can be used to help test plugin implementations which don't have reference to aGremlinScriptEngineas a dependency.- Author:
- Stephen Mallette (http://stephen.genoprime.com)
 
- 
- 
Field Summary- 
Fields inherited from class javax.script.AbstractScriptEnginecontext
 - 
Fields inherited from interface org.apache.tinkerpop.gremlin.jsr223.GremlinScriptEngineHIDDEN_G
 - 
Fields inherited from interface javax.script.ScriptEngineARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description MockGremlinScriptEngine()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description BindingscreateBindings()Objecteval(Reader reader, ScriptContext context)Objecteval(String script, ScriptContext context)Traversal.Admineval(Bytecode bytecode, Bindings bindings, String traversalSource)GremlinScriptEngineFactorygetFactory()- 
Methods inherited from class javax.script.AbstractScriptEngineeval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.jsr223.GremlinScriptEngineeval
 - 
Methods inherited from interface javax.script.ScriptEngineeval, eval, eval, eval, get, getBindings, getContext, put, setBindings, setContext
 
- 
 
- 
- 
- 
Method Detail- 
getFactorypublic GremlinScriptEngineFactory getFactory() - Specified by:
- getFactoryin interface- GremlinScriptEngine
- Specified by:
- getFactoryin interface- ScriptEngine
 
 - 
evalpublic Object eval(String script, ScriptContext context) throws ScriptException - Specified by:
- evalin interface- ScriptEngine
- Throws:
- ScriptException
 
 - 
evalpublic Object eval(Reader reader, ScriptContext context) throws ScriptException - Specified by:
- evalin interface- ScriptEngine
- Throws:
- ScriptException
 
 - 
evalpublic Traversal.Admin eval(Bytecode bytecode, Bindings bindings, String traversalSource) throws ScriptException Description copied from interface:GremlinScriptEngineEvaluatesTraversalBytecodewith the specifiedBindings. TheseBindingssupplied to this method will be merged with global engine bindings and override them where keys match.- Specified by:
- evalin interface- GremlinScriptEngine
- Throws:
- ScriptException
 
 - 
createBindingspublic Bindings createBindings() - Specified by:
- createBindingsin interface- ScriptEngine
 
 
- 
 
-