|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.crsh.lang.impl.script.ScriptRepl
public class ScriptRepl
Field Summary | |
---|---|
private static ScriptRepl |
instance
. |
private Language |
lang
. |
(package private) static Logger |
log
. |
Constructor Summary | |
---|---|
private |
ScriptRepl()
|
Method Summary | |
---|---|
CompletionMatch |
complete(ShellSession session,
String prefix)
Perform completion. |
ReplResponse |
eval(ShellSession session,
String request)
Evaluate a request. |
String |
getDescription()
|
static ScriptRepl |
getInstance()
|
Language |
getLanguage()
|
String |
getName()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final ScriptRepl instance
static final Logger log
private final Language lang
Constructor Detail |
---|
private ScriptRepl()
Method Detail |
---|
public static ScriptRepl getInstance()
public Language getLanguage()
getLanguage
in interface Repl
public String getName()
public String getDescription()
getDescription
in interface Repl
public ReplResponse eval(ShellSession session, String request)
Repl
eval
in interface Repl
session
- the sessionrequest
- the request to evaluate
public CompletionMatch complete(ShellSession session, String prefix)
Repl
complete
in interface Repl
session
- the sessionprefix
- the prefix to complete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |