| Package | Description |
|---|---|
| de.weltraumschaf.commons.shell |
Sub package for a simple interactive shell.
|
| Modifier and Type | Field and Description |
|---|---|
private SubCommandType |
LiteralCommandMap.defaultSubCommand
Default sub command for commands w/o sub commands.
|
private SubCommandType |
ShellCommand.subCommand
Optional sub mainCommand.
|
| Modifier and Type | Field and Description |
|---|---|
private Map<String,SubCommandType> |
LiteralCommandMap.subCommands
Map the literal sub command string to corresponding type enum.
|
| Modifier and Type | Method and Description |
|---|---|
SubCommandType |
LiteralCommandMap.determineSubCommand(Token t)
Determines the appropriate sub command type for given string token.
|
SubCommandType |
LiteralCommandMap.getDefaultSubCommand()
Get the default sub command for commands w/o sub commands.
|
SubCommandType |
ShellCommand.getSubCommand()
Get optional mainCommand sub type.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class<? extends SubCommandType> |
LiteralCommandMap.getSubCommandType()
Return here the enum type which declares your sub commands.
|
| Constructor and Description |
|---|
LiteralCommandMap(SubCommandType defaultSubCommand)
Dedicated constructor.
|
ShellCommand(MainCommandType mainCommand,
SubCommandType subCommand,
List<Token> arguments)
Dedicated constructor.
|
Copyright © 2014 Sven Strittmatter. All Rights Reserved.