org.crsh.lang.impl.groovy
Class GroovyRepl
java.lang.Object
org.crsh.lang.impl.groovy.GroovyRepl
- All Implemented Interfaces:
- Repl
-
public class GroovyRepl
- extends Object
-
- implements Repl
-
Groovy REPL implementation.
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lang
final GroovyLanguage lang
-
.
GroovyRepl
public GroovyRepl(GroovyLanguage lang)
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 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.