| Package | Description |
|---|---|
| ru.d_shap.cli |
CLI tools provide facilities for the command line interface development.
|
| ru.d_shap.cli.command |
CLI command classes.
|
| ru.d_shap.cli.command.input |
CLI input command classes.
|
| ru.d_shap.cli.command.menu |
CLI menu command classes.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Command> |
Command.getParentCommand(Class<T> clazz)
Get the parent command with the specified class.
|
<T extends Command> |
Command.hasParentCommand(Class<T> clazz)
Check if this command has the parent command with the specified class.
|
| Modifier and Type | Method and Description |
|---|---|
Command |
Command.execute(PrintWriter writer,
BufferedReader reader)
Execute the command.
|
Command |
Command.getParentCommand()
Get the parent command.
|
<T extends Command> |
Command.getParentCommand(Class<T> clazz)
Get the parent command with the specified class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CommandRunner.execute(Command command)
Execute the command sequence with the default context, started from the specified command.
|
void |
CommandRunner.execute(Command command,
Context context)
Execute the command sequence with the specified context, started from the specified command.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCommand
Base class for all commands.
|
class |
AbstractContainerCommand
Base class for all commands that execute contained commands with the nested context.
|
class |
AbstractExecutionCommand
Base class for all execution commands.
|
class |
AbstractUserActionCommand
Base class for all user action commands.
|
class |
CommandDelegate
Command delegate to define the command at the some later time.
|
class |
SimpleContainerCommand
Container command that execute contained commands with the nested context.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Command> |
AbstractCommand.getParentCommand(Class<T> clazz) |
<T extends Command> |
CommandDelegate.getParentCommand(Class<T> clazz) |
<T extends Command> |
AbstractCommand.hasParentCommand(Class<T> clazz) |
<T extends Command> |
CommandDelegate.hasParentCommand(Class<T> clazz) |
| Modifier and Type | Method and Description |
|---|---|
Command |
AbstractExecutionCommand.execute(PrintWriter writer,
BufferedReader reader) |
Command |
AbstractUserActionCommand.execute(PrintWriter writer,
BufferedReader reader) |
Command |
CommandDelegate.execute(PrintWriter writer,
BufferedReader reader) |
Command |
AbstractContainerCommand.execute(PrintWriter writer,
BufferedReader reader) |
Command |
CommandDelegate.getCommand()
Get the command to delegate calls.
|
Command |
AbstractCommand.getParentCommand() |
Command |
CommandDelegate.getParentCommand() |
<T extends Command> |
AbstractCommand.getParentCommand(Class<T> clazz) |
<T extends Command> |
CommandDelegate.getParentCommand(Class<T> clazz) |
static Command |
ParentCommandHelper.getParentCommand(Command parentCommand,
Command command)
Get the parent command, defined explicitly or obtained from the specified command.
|
| Modifier and Type | Method and Description |
|---|---|
static Command |
ParentCommandHelper.getParentCommand(Command parentCommand,
Command command)
Get the parent command, defined explicitly or obtained from the specified command.
|
void |
CommandDelegate.setCommand(Command command)
Set the command to delegate calls.
|
| Constructor and Description |
|---|
CommandDelegate(Command command)
Create new object.
|
SimpleContainerCommand(Command startCommand)
Create new object.
|
SimpleContainerCommand(Command parentCommand,
Command startCommand)
Create new object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractInputBooleanCommand
Base class for all Boolean input commands.
|
class |
AbstractInputCommand<T>
Base class for all input commands.
|
class |
AbstractInputDoubleCommand
Base class for all Double input commands.
|
class |
AbstractInputFloatCommand
Base class for all Float input commands.
|
class |
AbstractInputIntegerCommand
Base class for all Integer input commands.
|
class |
AbstractInputLongCommand
Base class for all Long input commands.
|
class |
AbstractInputStringCommand
Base class for all String input commands.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractConfirmCommand
Base class for all commands to confirm user action or to return to the parent command.
|
class |
AbstractMenuCommand
Base class for all menu selection commands.
|
class |
AbstractYesNoCancelCommand
Base class for all commands to select one of two options or to return to the parent command.
|
class |
AbstractYesNoCommand
Base class for all commands to select one of two options.
|
| Modifier and Type | Method and Description |
|---|---|
Command |
MenuItem.getCommand() |
Command |
SelectableOption.getCommand()
Get the command to execute.
|
| Constructor and Description |
|---|
MenuItem(String symbol,
Lines label,
Command command)
Create new object.
|
MenuItem(String symbol,
String label,
Command command)
Create new object.
|
Copyright © 2019. All rights reserved.