org.crsh.lang.impl.script
Class ScriptRepl
java.lang.Object
org.crsh.lang.impl.script.ScriptRepl
- All Implemented Interfaces:
- Repl
-
public class ScriptRepl
- extends Object
-
- implements Repl
-
- Author:
- Julien Viet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instance
private static final ScriptRepl instance
-
.
log
static final Logger log
-
.
lang
private final Language lang
-
.
ScriptRepl
private ScriptRepl()
getInstance
public static ScriptRepl getInstance()
-
-
getLanguage
public Language getLanguage()
-
- Specified by:
getLanguage
in interface Repl
-
- Returns:
- the language this repl belongs to
getName
public String getName()
-
-
getDescription
public String getDescription()
-
- Specified by:
getDescription
in interface Repl
-
- Returns:
- a descripton of the Repl
eval
public ReplResponse eval(ShellSession 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(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.