|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A simple shell for invoking commands from a command-line.
Field Summary | |
---|---|
IO |
io
|
Logger |
log
|
CommandRegistry |
registry
|
Constructor Summary | |
Shell(IO io)
|
|
Shell()
|
Method Summary | |
---|---|
Object |
execute(String line)
|
Command |
findCommand(String line)
|
boolean |
isExecutable(String line)
|
def |
leftShift(String line)
|
def |
leftShift(Command command)
|
List |
parseLine(String line)
|
Command |
register(Command command)
|
Constructor Detail |
---|
public Shell(IO io)
public Shell()
Method Detail |
---|
Object execute(String line)
Command findCommand(String line)
boolean isExecutable(String line)
public def leftShift(String line)
public def leftShift(Command command)
List parseLine(String line)
Command register(Command command)