public class InteractiveShell extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CommandLineMachine |
cli |
protected Map<String,String> |
closeOpenMap |
protected Console |
console |
protected xyz.cofe.collection.Func1<Boolean,String> |
exit |
protected Lexer |
lexer |
protected Lock |
lock |
protected Map<String,String> |
openCloseMap |
protected Parser |
parser |
protected xyz.cofe.collection.Func1<Boolean,Object> |
printResult |
protected boolean |
running |
| Constructor and Description |
|---|
InteractiveShell(CommandLineMachine cli) |
| Modifier and Type | Method and Description |
|---|---|
Writer |
createConsoleWriter(String indent) |
CommandLineMachine |
getCli() |
protected Map<String,String> |
getCloseOpenMap() |
Console |
getConsole() |
xyz.cofe.collection.Func1<Boolean,String> |
getExit() |
Lexer |
getLexer() |
protected Map<String,String> |
getOpenCloseMap() |
Writer |
getOutputWriter() |
Parser |
getParser() |
xyz.cofe.collection.Func1<Boolean,Object> |
getPrintResult() |
protected String |
getPromptContinue() |
protected String |
getPromptDumpTree() |
protected String |
getPromptError() |
protected String |
getPromptInput() |
protected String |
getPromptOutput() |
protected String |
getPromptResult() |
boolean |
isRunning() |
void |
setExit(xyz.cofe.collection.Func1<Boolean,String> exit) |
void |
setLexer(Lexer lexer) |
void |
setParser(Parser parser) |
void |
setPrintResult(xyz.cofe.collection.Func1<Boolean,Object> printResult) |
protected void |
setRunning(boolean running) |
void |
start() |
protected final Lock lock
protected CommandLineMachine cli
protected Lexer lexer
protected Parser parser
protected boolean running
protected Console console
public InteractiveShell(CommandLineMachine cli)
public CommandLineMachine getCli()
public Lexer getLexer()
public void setLexer(Lexer lexer)
public Parser getParser()
public void setParser(Parser parser)
public boolean isRunning()
protected void setRunning(boolean running)
public Console getConsole()
protected String getPromptInput()
protected String getPromptContinue()
protected String getPromptResult()
protected String getPromptError()
protected String getPromptOutput()
protected String getPromptDumpTree()
public Writer getOutputWriter()
public void start()
Copyright © 2017. All rights reserved.