Modifier and Type | Interface | Description |
---|---|---|
interface |
Option<T> |
An
Option represents a command line option with the according
option's value. |
interface |
Switch |
Modifier and Type | Class | Description |
---|---|---|
class |
AbstractOperand<T> |
The
AbstractOperand is an abstract implementation of an
Operand providing the boiler plate when implementing the
Operand interface. |
class |
AbstractOption<T> |
The
AbstractOption is an abstract implementation of an Option
providing the boiler plate when implementing the Option interface. |
class |
EnumOptionImpl<T extends Enum<T>> |
The Class EnumOptionImpl.
|
class |
ForceSwitchImpl |
A predefined force switch.
|
class |
HelpSwitchImpl |
A predefined help switch.
|
class |
IntegerOptionImpl |
The Class IntegerOptionImpl.
|
class |
QuietSwitchImpl |
A predefined "be quiet" switch.
|
class |
StringOperandImpl |
|
class |
StringOptionImpl |
The Class StringOptionImpl.
|
class |
SwitchImpl |
The
SwitchImpl class implements the Switch interface. |
class |
SysInfoSwitchImpl |
A predefined system information switch.
|
class |
VerboseSwitchImpl |
A predefined verbose switch.
|
Modifier and Type | Method | Description |
---|---|---|
static Operand<String> |
ConsoleSugar.stringOperand(String aIdentifier,
String aDescription) |
String operand.
|
Modifier and Type | Method | Description |
---|---|---|
List<? extends Operand<?>> |
ArgsParser.evalArgs(String[] aArgs) |
Evaluates the provided command line arguments and determines the
according values by evaluating the root
Condition . |
default List<? extends Operand<?>> |
ArgsParser.evalArgs(List<String> aArgs) |
Same as
ArgsParser.evalArgs(String[]) with the difference that the elements
representing the arguments are passed as a list instead of an array. |
List<? extends Operand<?>> |
ArgsParserImpl.evalArgs(String[] aArgs) |
Evaluates the provided command line arguments and determines the
according values by evaluating the root
Condition . |
protected static List<? extends Operand<?>> |
ArgsParserImpl.fromArgs(String[] aArgs,
char aDelimiter) |
Heuristically loads the arguments without any syntax required, e.g.
|
List<Operand<T>> |
AbstractOperand.parseArgs(String[] aArgs) |
Parses the provided command line arguments and determines the according
values by evaluating this
Syntaxable instance or, in case of
being a node in the syntax tree (such as a Condition , traversing
the child Syntaxable instances' Syntaxable.parseArgs(String[])
methods. |
List<Operand<T>> |
AbstractOption.parseArgs(String[] aArgs) |
Parses the provided command line arguments and determines the according
values by evaluating this
Syntaxable instance or, in case of
being a node in the syntax tree (such as a Condition , traversing
the child Syntaxable instances' Syntaxable.parseArgs(String[])
methods. |
List<? extends Operand<?>> |
AndConditionImpl.parseArgs(String[] aArgs) |
|
List<? extends Operand<?>> |
OptionalConditionImpl.parseArgs(String[] aArgs) |
|
List<? extends Operand<?>> |
OrConditionImpl.parseArgs(String[] aArgs) |
|
List<Operand<Boolean>> |
SwitchImpl.parseArgs(String[] aArgs) |
Parses the provided command line arguments and determines the according
values by evaluating this
Syntaxable instance or, in case of
being a node in the syntax tree (such as a Condition , traversing
the child Syntaxable instances' Syntaxable.parseArgs(String[])
methods. |
List<? extends Operand<?>> |
Syntaxable.parseArgs(String[] aArgs) |
Parses the provided command line arguments and determines the according
values by evaluating this
Syntaxable instance or, in case of
being a node in the syntax tree (such as a Condition , traversing
the child Syntaxable instances' Syntaxable.parseArgs(String[])
methods. |
List<? extends Operand<?>> |
XorConditionImpl.parseArgs(String[] aArgs) |
|
List<? extends Operand<?>> |
AbstractCondition.toOperands() |
|
List<? extends Operand<?>> |
Condition.toOperands() |
Modifier and Type | Method | Description |
---|---|---|
int |
AbstractOperand.compareTo(Operand<?> obj) |
|
static String |
ConsoleUtility.toOptionsSpec(Operand<?> aOperand) |
Creates the options specification containing the short option (if any)
and the long option ( if any) from the provided
Operand ;. |
static String |
ConsoleUtility.toParameterSpec(Operand<?> aOperand) |
Creates the parameter specification from the provided
Operand . |
static String |
ConsoleUtility.toSpec(Operand<?> aOperand) |
Creates a specification for the given
Operand consisting of the
options specification (if any) as of ConsoleUtility.toOptionsSpec(Operand) and
the parameter specification (if any) as of
ConsoleUtility.toParameterSpec(Operand) . |
Modifier and Type | Method | Description |
---|---|---|
static String[] |
ConsoleUtility.toDiff(String[] aSet,
List<? extends Operand<?>> aSubset) |
Copyright © 2018. All rights reserved.