|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.lang.script.ScriptRepl
public class ScriptRepl
| Field Summary | |
|---|---|
private static ScriptRepl |
instance
. |
(package private) static Logger |
log
. |
| Constructor Summary | |
|---|---|
private |
ScriptRepl()
|
| Method Summary | |
|---|---|
CompletionMatch |
complete(ReplSession session,
String prefix)
Perform completion. |
EvalResponse |
eval(ReplSession session,
String request)
Evaluate a request |
String |
getDescription()
Returns a descripton of the REPL. |
static ScriptRepl |
getInstance()
|
String |
getName()
Return the repl name. |
boolean |
isActive()
Return true if this REPL is active. |
| 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
| Constructor Detail |
|---|
private ScriptRepl()
| Method Detail |
|---|
public static ScriptRepl getInstance()
public boolean isActive()
Repl
isActive in interface Replpublic String getName()
Repl
getName in interface Replpublic String getDescription()
Repl
getDescription in interface Repl
public EvalResponse eval(ReplSession session,
String request)
Repl
eval in interface Replsession - the sessionrequest - the request to evaluate
public CompletionMatch complete(ReplSession session,
String prefix)
Repl
complete in interface Replsession - the sessionprefix - the prefix to complete
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||