org.crsh.lang.spi
Interface Repl
- All Known Implementing Classes:
- GroovyRepl, ScriptRepl
-
public interface Repl
Read–eval–print loop.
- Author:
- Julien Viet
getLanguage
Language getLanguage()
-
- Returns:
- the language this repl belongs to
getDescription
String getDescription()
-
- Returns:
- a descripton of the Repl
eval
ReplResponse eval(ShellSession session,
String request)
-
Evaluate a request.
-
- Parameters:
session
- the session
request
- the request to evaluate
- Returns:
- the evaluation response
complete
CompletionMatch complete(ShellSession session,
String prefix)
-
Perform completion.
-
- Parameters:
session
- the session
prefix
- the prefix to complete
- Returns:
- the completion match
Copyright © 2015 eXo Platform SAS. All Rights Reserved.