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 |
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 sessionrequest - 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 sessionprefix - the prefix to complete
- Returns:
- the completion match
Copyright © 2015 eXo Platform SAS. All Rights Reserved.