Skip navigation links
A C D E F G H I L M N O P R S T V W 

A

AbstractCommand - Class in ru.d_shap.cli.command
Base class for all commands.
AbstractConfirmCommand - Class in ru.d_shap.cli.command.menu
Base class for all commands to confirm user action or to return to the parent command.
AbstractContainerCommand - Class in ru.d_shap.cli.command
Base class for all commands that execute contained commands with the nested context.
AbstractExecutionCommand - Class in ru.d_shap.cli.command
Base class for all execution commands.
AbstractInputBooleanCommand - Class in ru.d_shap.cli.command.input
Base class for all Boolean input commands.
AbstractInputCommand<T> - Class in ru.d_shap.cli.command.input
Base class for all input commands.
AbstractInputDoubleCommand - Class in ru.d_shap.cli.command.input
Base class for all Double input commands.
AbstractInputFloatCommand - Class in ru.d_shap.cli.command.input
Base class for all Float input commands.
AbstractInputIntegerCommand - Class in ru.d_shap.cli.command.input
Base class for all Integer input commands.
AbstractInputLongCommand - Class in ru.d_shap.cli.command.input
Base class for all Long input commands.
AbstractInputStringCommand - Class in ru.d_shap.cli.command.input
Base class for all String input commands.
AbstractMenuCommand - Class in ru.d_shap.cli.command.menu
Base class for all menu selection commands.
AbstractUserActionCommand - Class in ru.d_shap.cli.command
Base class for all user action commands.
AbstractYesNoCancelCommand - Class in ru.d_shap.cli.command.menu
Base class for all commands to select one of two options or to return to the parent command.
AbstractYesNoCommand - Class in ru.d_shap.cli.command.menu
Base class for all commands to select one of two options.
addLine(String) - Method in class ru.d_shap.cli.data.Lines
Add the output line.
addLines(String...) - Method in class ru.d_shap.cli.data.Lines
Add the output lines.
addLines(Collection<String>) - Method in class ru.d_shap.cli.data.Lines
Add the output lines.
available() - Method in class ru.d_shap.cli.io.InputStreamWrapper
 

C

CHARSET_NAME - Static variable in class ru.d_shap.cli.CommandRunner
 
CliException - Exception in ru.d_shap.cli
Base class for all exceptions.
CliIOException - Exception in ru.d_shap.cli
IO exception runtime wrapper.
CliIOException(IOException) - Constructor for exception ru.d_shap.cli.CliIOException
Create new object.
close() - Method in class ru.d_shap.cli.io.InputStreamWrapper
 
close() - Method in class ru.d_shap.cli.io.OutputStreamWrapper
 
Command - Interface in ru.d_shap.cli
Command interface.
CommandDefinitionException - Exception in ru.d_shap.cli.command
Exception is thrown when the command definition is wrong.
CommandDefinitionException(String) - Constructor for exception ru.d_shap.cli.command.CommandDefinitionException
Create new object.
CommandDelegate - Class in ru.d_shap.cli.command
Command delegate to define the command at the some later time.
CommandDelegate() - Constructor for class ru.d_shap.cli.command.CommandDelegate
Create new object.
CommandDelegate(Command) - Constructor for class ru.d_shap.cli.command.CommandDelegate
Create new object.
CommandRunner - Class in ru.d_shap.cli
Command runner.
CommandRunner(OutputStream, InputStream) - Constructor for class ru.d_shap.cli.CommandRunner
Create new object.
CommandRunner(OutputStream, InputStream, OutputStream) - Constructor for class ru.d_shap.cli.CommandRunner
Create new object.
CommandRunner(OutputStream, InputStream, String) - Constructor for class ru.d_shap.cli.CommandRunner
Create new object.
CommandRunner(OutputStream, InputStream, OutputStream, String) - Constructor for class ru.d_shap.cli.CommandRunner
Create new object.
CommandRunner(OutputStream, InputStream, Charset) - Constructor for class ru.d_shap.cli.CommandRunner
Create new object.
CommandRunner(OutputStream, InputStream, OutputStream, Charset) - Constructor for class ru.d_shap.cli.CommandRunner
Create new object.
Context - Class in ru.d_shap.cli.data
Command execution context.
Context() - Constructor for class ru.d_shap.cli.data.Context
Create new object.
Context(Context) - Constructor for class ru.d_shap.cli.data.Context
Create new object.
copyValueTo(String, Context) - Method in class ru.d_shap.cli.data.Context
Copy the value to the specified context.
copyValueTo(String, Context, String) - Method in class ru.d_shap.cli.data.Context
Copy the value to the specified context.

D

DEFAULT_SYMBOL_LENGTH - Static variable in class ru.d_shap.cli.command.menu.AbstractMenuCommand
 

E

execute(PrintWriter, BufferedReader) - Method in class ru.d_shap.cli.command.AbstractContainerCommand
 
execute(PrintWriter, BufferedReader) - Method in class ru.d_shap.cli.command.AbstractExecutionCommand
 
execute(PrintWriter, BufferedReader) - Method in class ru.d_shap.cli.command.AbstractUserActionCommand
 
execute(PrintWriter, BufferedReader) - Method in class ru.d_shap.cli.command.CommandDelegate
 
execute(PrintWriter, BufferedReader) - Method in interface ru.d_shap.cli.Command
Execute the command.
execute(Command) - Method in class ru.d_shap.cli.CommandRunner
Execute the command sequence with the default context, started from the specified command.
execute(Command, Context) - Method in class ru.d_shap.cli.CommandRunner
Execute the command sequence with the specified context, started from the specified command.

F

flush() - Method in class ru.d_shap.cli.io.OutputStreamWrapper
 

G

getCommand() - Method in class ru.d_shap.cli.command.CommandDelegate
Get the command to delegate calls.
getCommand() - Method in class ru.d_shap.cli.command.menu.MenuItem
 
getCommand() - Method in interface ru.d_shap.cli.command.menu.SelectableOption
Get the command to execute.
getCommandRunner() - Method in class ru.d_shap.cli.command.AbstractCommand
 
getCommandRunner() - Method in class ru.d_shap.cli.command.CommandDelegate
 
getCommandRunner() - Method in interface ru.d_shap.cli.Command
Get the command runner.
getContext() - Method in class ru.d_shap.cli.command.AbstractCommand
 
getContext() - Method in class ru.d_shap.cli.command.CommandDelegate
 
getContext() - Method in interface ru.d_shap.cli.Command
Get the command context.
getLabel() - Method in class ru.d_shap.cli.command.menu.MenuItem
 
getLabel() - Method in interface ru.d_shap.cli.command.menu.SelectableOption
Get the label.
getLines() - Method in class ru.d_shap.cli.data.Lines
Get the output lines.
getNames() - Method in class ru.d_shap.cli.data.Context
Get all context names.
getParentCommand() - Method in class ru.d_shap.cli.command.AbstractCommand
 
getParentCommand(Class<T>) - Method in class ru.d_shap.cli.command.AbstractCommand
 
getParentCommand() - Method in class ru.d_shap.cli.command.CommandDelegate
 
getParentCommand(Class<T>) - Method in class ru.d_shap.cli.command.CommandDelegate
 
getParentCommand() - Method in interface ru.d_shap.cli.Command
Get the parent command.
getParentCommand(Class<T>) - Method in interface ru.d_shap.cli.Command
Get the parent command with the specified class.
getParentCommand(Command, Command) - Static method in class ru.d_shap.cli.command.ParentCommandHelper
Get the parent command, defined explicitly or obtained from the specified command.
getReader() - Method in class ru.d_shap.cli.CommandRunner
Get the stream to read the user input.
getSymbol() - Method in class ru.d_shap.cli.command.menu.MenuItem
 
getSymbol() - Method in interface ru.d_shap.cli.command.menu.SelectableOption
Get the symbol to select this option.
getValue(String) - Method in class ru.d_shap.cli.data.Context
Get the value from the context.
getValue() - Method in class ru.d_shap.cli.data.ValueHolder
Get the value.
getWriter() - Method in class ru.d_shap.cli.CommandRunner
Get the stream to write the command output.

H

hasParentCommand() - Method in class ru.d_shap.cli.command.AbstractCommand
 
hasParentCommand(Class<T>) - Method in class ru.d_shap.cli.command.AbstractCommand
 
hasParentCommand() - Method in class ru.d_shap.cli.command.CommandDelegate
 
hasParentCommand(Class<T>) - Method in class ru.d_shap.cli.command.CommandDelegate
 
hasParentCommand() - Method in interface ru.d_shap.cli.Command
Check if this command has the parent command.
hasParentCommand(Class<T>) - Method in interface ru.d_shap.cli.Command
Check if this command has the parent command with the specified class.
hasValue(String) - Method in class ru.d_shap.cli.data.Context
Check if the context has the value.

I

InputStreamWrapper - Class in ru.d_shap.cli.io
Input stream wrapper to log the user input.
InputStreamWrapper(InputStream) - Constructor for class ru.d_shap.cli.io.InputStreamWrapper
Create new object.
InputStreamWrapper(InputStream, OutputStream) - Constructor for class ru.d_shap.cli.io.InputStreamWrapper
Create new object.
isSelected(String) - Method in class ru.d_shap.cli.command.menu.MenuItem
 
isSelected(String) - Method in interface ru.d_shap.cli.command.menu.SelectableOption
Check if this option is selected.

L

Lines - Class in ru.d_shap.cli.data
Class to hold the output lines.
Lines() - Constructor for class ru.d_shap.cli.data.Lines
Create new object.
Lines(String) - Constructor for class ru.d_shap.cli.data.Lines
Create new object.
Lines(String...) - Constructor for class ru.d_shap.cli.data.Lines
Create new object.
Lines(Collection<String>) - Constructor for class ru.d_shap.cli.data.Lines
Create new object.
Lines(Lines) - Constructor for class ru.d_shap.cli.data.Lines
Create new object.
Lines(Lines, String) - Constructor for class ru.d_shap.cli.data.Lines
Create new object.
Lines(Lines, String...) - Constructor for class ru.d_shap.cli.data.Lines
Create new object.
Lines(Lines, Collection<String>) - Constructor for class ru.d_shap.cli.data.Lines
Create new object.
loadValue() - Method in interface ru.d_shap.cli.data.ValueLoader
Load the value.

M

markSupported() - Method in class ru.d_shap.cli.io.InputStreamWrapper
 
MenuItem - Class in ru.d_shap.cli.command.menu
Menu item.
MenuItem(String, String) - Constructor for class ru.d_shap.cli.command.menu.MenuItem
Create new object.
MenuItem(String, Lines) - Constructor for class ru.d_shap.cli.command.menu.MenuItem
Create new object.
MenuItem(String, String, Command) - Constructor for class ru.d_shap.cli.command.menu.MenuItem
Create new object.
MenuItem(String, Lines, Command) - Constructor for class ru.d_shap.cli.command.menu.MenuItem
Create new object.
MenuSeparator - Class in ru.d_shap.cli.command.menu
Menu separator.
MenuSeparator() - Constructor for class ru.d_shap.cli.command.menu.MenuSeparator
Create new object.

N

NO_DEFAULT_OPTION_INDEX - Static variable in class ru.d_shap.cli.command.menu.AbstractMenuCommand
 

O

Option - Interface in ru.d_shap.cli.command.menu
Menu option.
OutputStreamWrapper - Class in ru.d_shap.cli.io
Output stream wrapper to log the command output.
OutputStreamWrapper(OutputStream) - Constructor for class ru.d_shap.cli.io.OutputStreamWrapper
Create new object.
OutputStreamWrapper(OutputStream, OutputStream) - Constructor for class ru.d_shap.cli.io.OutputStreamWrapper
Create new object.

P

ParentCommandHelper - Class in ru.d_shap.cli.command
Helper class to obtain the parent command.
print(PrintWriter, int, boolean) - Method in class ru.d_shap.cli.command.menu.MenuItem
 
print(PrintWriter, int, boolean) - Method in class ru.d_shap.cli.command.menu.MenuSeparator
 
print(PrintWriter, int, boolean) - Method in interface ru.d_shap.cli.command.menu.Option
Print the option.
putValue(String, T) - Method in class ru.d_shap.cli.data.Context
Put the value to the context.

R

read() - Method in class ru.d_shap.cli.io.InputStreamWrapper
 
read(byte[]) - Method in class ru.d_shap.cli.io.InputStreamWrapper
 
read(byte[], int, int) - Method in class ru.d_shap.cli.io.InputStreamWrapper
 
removeValue(String) - Method in class ru.d_shap.cli.data.Context
Remove the value from the context.
reset() - Method in class ru.d_shap.cli.command.AbstractCommand
 
reset() - Method in class ru.d_shap.cli.command.CommandDelegate
 
reset() - Method in interface ru.d_shap.cli.Command
Reset the command state.
reset() - Method in class ru.d_shap.cli.data.ValueHolder
Reset the value state.
ru.d_shap.cli - package ru.d_shap.cli
CLI tools provide facilities for the command line interface development.
ru.d_shap.cli.command - package ru.d_shap.cli.command
CLI command classes.
ru.d_shap.cli.command.input - package ru.d_shap.cli.command.input
CLI input command classes.
ru.d_shap.cli.command.menu - package ru.d_shap.cli.command.menu
CLI menu command classes.
ru.d_shap.cli.data - package ru.d_shap.cli.data
Command data classes.
ru.d_shap.cli.io - package ru.d_shap.cli.io
IO helper classes.

S

SelectableOption - Interface in ru.d_shap.cli.command.menu
Selectable menu option.
setCommand(Command) - Method in class ru.d_shap.cli.command.CommandDelegate
Set the command to delegate calls.
setCommandRunner(CommandRunner) - Method in class ru.d_shap.cli.command.AbstractCommand
 
setCommandRunner(CommandRunner) - Method in class ru.d_shap.cli.command.CommandDelegate
 
setCommandRunner(CommandRunner) - Method in interface ru.d_shap.cli.Command
Set the command runner.
setContext(Context) - Method in class ru.d_shap.cli.command.AbstractCommand
 
setContext(Context) - Method in class ru.d_shap.cli.command.CommandDelegate
 
setContext(Context) - Method in interface ru.d_shap.cli.Command
Set the command context.
SimpleContainerCommand - Class in ru.d_shap.cli.command
Container command that execute contained commands with the nested context.
SimpleContainerCommand(Command) - Constructor for class ru.d_shap.cli.command.SimpleContainerCommand
Create new object.
SimpleContainerCommand(Command, Command) - Constructor for class ru.d_shap.cli.command.SimpleContainerCommand
Create new object.
skip(long) - Method in class ru.d_shap.cli.io.InputStreamWrapper
 

T

toString() - Method in class ru.d_shap.cli.data.Context
 
toString() - Method in class ru.d_shap.cli.data.Lines
 

V

ValueHolder<T> - Class in ru.d_shap.cli.data
Value holder.
ValueHolder(ValueLoader<T>) - Constructor for class ru.d_shap.cli.data.ValueHolder
Create new object.
ValueLoader<T> - Interface in ru.d_shap.cli.data
Value loader.

W

write(int) - Method in class ru.d_shap.cli.io.OutputStreamWrapper
 
write(byte[]) - Method in class ru.d_shap.cli.io.OutputStreamWrapper
 
write(byte[], int, int) - Method in class ru.d_shap.cli.io.OutputStreamWrapper
 
A C D E F G H I L M N O P R S T V W 
Skip navigation links

Copyright © 2019. All rights reserved.