org.crsh.lang.impl.groovy
Class GroovyRepl

java.lang.Object
  extended by org.crsh.lang.impl.groovy.GroovyRepl
All Implemented Interfaces:
Repl

public class GroovyRepl
extends Object
implements Repl

Groovy REPL implementation.

Author:
Julien Viet

Constructor Summary
GroovyRepl(GroovyLanguage lang)
           
 
Method Summary
 org.crsh.cli.impl.completion.CompletionMatch complete(ShellSession session, String prefix)
          Perform completion.
 ReplResponse eval(ShellSession session, String r2)
          Evaluate a request.
 String getDescription()
           
 Language getLanguage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyRepl

public GroovyRepl(GroovyLanguage lang)
Method Detail

getLanguage

public Language getLanguage()
Specified by:
getLanguage in interface Repl
Returns:
the language this repl belongs to

getDescription

public String getDescription()
Specified by:
getDescription in interface Repl
Returns:
a descripton of the Repl

eval

public ReplResponse eval(ShellSession session,
                         String r2)
Description copied from interface: Repl
Evaluate a request.

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

complete

public org.crsh.cli.impl.completion.CompletionMatch complete(ShellSession session,
                                                             String prefix)
Description copied from interface: Repl
Perform completion.

Specified by:
complete in interface Repl
Parameters:
session - the session
prefix - the prefix to complete
Returns:
the completion match


Copyright © 2015 eXo Platform SAS. All Rights Reserved.