org.neo4j.server.webadmin.console
Class GremlinResultHook

java.lang.Object
  extended by groovy.lang.GroovyObjectSupport
      extended by groovy.lang.Closure
          extended by org.neo4j.server.webadmin.console.GremlinResultHook
All Implemented Interfaces:
groovy.lang.GroovyObject, Serializable, Cloneable, Runnable

public class GremlinResultHook
extends groovy.lang.Closure

Version of ResultHookClosure that does not add ==> to the output. This is instead moved to the console or print stream to handle, so that all content printed to the output stream gets the same prompt.

Author:
Marko A. Rodriguez (http://markorodriguez.com), Jacob Hansson
See Also:
Serialized Form

Field Summary
 
Fields inherited from class groovy.lang.Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
 
Constructor Summary
GremlinResultHook(Object owner, org.codehaus.groovy.tools.shell.IO io)
           
 
Method Summary
 Object call(Object[] args)
           
 
Methods inherited from class groovy.lang.Closure
asWritable, call, call, clone, curry, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, isCase, ncurry, rcurry, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException
 
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, invokeMethod, setMetaClass
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GremlinResultHook

public GremlinResultHook(Object owner,
                         org.codehaus.groovy.tools.shell.IO io)
Method Detail

call

public Object call(Object[] args)
Overrides:
call in class groovy.lang.Closure


Copyright © 2011 The Neo4j Graph Database Project. All Rights Reserved.