org.crsh.lang.groovy.repl
Class GroovyREPL

java.lang.Object
  extended by org.crsh.lang.groovy.repl.GroovyREPL
All Implemented Interfaces:
REPL

public class GroovyREPL
extends Object
implements REPL

Groovy REPL implementation.

Author:
Julien Viet

Constructor Summary
GroovyREPL()
           
 
Method Summary
 CompletionMatch complete(REPLSession session, String prefix)
           
 EvalResponse eval(REPLSession session, String request)
          Evaluate a request
 String getName()
          Return the repl name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyREPL

public GroovyREPL()
Method Detail

getName

public String getName()
Description copied from interface: REPL
Return the repl name.

Specified by:
getName in interface REPL
Returns:
the repl name

eval

public EvalResponse eval(REPLSession session,
                         String request)
Description copied from interface: REPL
Evaluate a request

Specified by:
eval in interface REPL
Parameters:
session - the session
request - the request to evaluate
Returns:
the evaluation response

complete

public CompletionMatch complete(REPLSession session,
                                String prefix)
Specified by:
complete in interface REPL


Copyright © 2013 eXo Platform SAS. All Rights Reserved.