public class ConsoleSugar extends Object
Constructor | Description |
---|---|
ConsoleSugar() |
Modifier and Type | Method | Description |
---|---|---|
static Condition |
and(Syntaxable... aArgs) |
And.
|
static <T extends Enum<T>> |
enumOption(String aShortOption,
String aLongOption,
Class<T> aType,
String aAlias,
String aDescription) |
Enum option.
|
static Switch |
forcesSwitch() |
Forces switch.
|
static Switch |
forcesSwitch(String aDescription) |
Forces switch.
|
static Switch |
helpSwitch() |
Help switch.
|
static Switch |
helpSwitch(String aDescription) |
Help switch.
|
static Option<Integer> |
intOption(String aShortOption,
String aLongOption,
String aAlias,
String aDescription) |
Int option.
|
static Condition |
optional(Syntaxable... aArg) |
Optional.
|
static Condition |
or(Syntaxable... aArgs) |
Or.
|
static Switch |
quietSwitch() |
Quiet switch.
|
static Switch |
quietSwitch(String aDescription) |
Quiet switch.
|
static Operand<String> |
stringOperand(String aIdentifier,
String aDescription) |
String operand.
|
static Option<String> |
stringOption(String aShortOption,
String aLongOption,
String aAlias,
String aDescription) |
String option.
|
static Switch |
switsh(String aShortOption,
String aLongOption,
String aDescription) |
As "switch" is a reserved word in Java, we use "switsh" :-(.
|
static Switch |
sysInfoSwitch() |
Sys info switch.
|
static Switch |
sysInfoSwitch(String aDescription) |
Sys info switch.
|
static Switch |
verboseSwitch() |
Verbose switch.
|
static Switch |
verboseSwitch(String aDescription) |
Verbose switch.
|
static Condition |
xor(Syntaxable... aArgs) |
Xor.
|
public static Condition and(Syntaxable... aArgs)
aArgs
- the argsAndConditionImpl
public static Condition or(Syntaxable... aArgs)
aArgs
- the argsOrConditionImpl
public static Condition xor(Syntaxable... aArgs)
aArgs
- the argsXorConditionImpl
public static Condition optional(Syntaxable... aArg)
aArg
- the argOptionalConditionImpl
public static <T extends Enum<T>> Option<T> enumOption(String aShortOption, String aLongOption, Class<T> aType, String aAlias, String aDescription)
T
- the generic typeaShortOption
- the short optionaLongOption
- the long optionaType
- the typeaAlias
- the option arg nameaDescription
- the descriptionEnumOptionImpl
public static Switch switsh(String aShortOption, String aLongOption, String aDescription)
aShortOption
- the short optionaLongOption
- the long optionaDescription
- the descriptionSwitch
public static Switch forcesSwitch(String aDescription)
aDescription
- the descriptionForceSwitchImpl
public static Switch forcesSwitch()
ForceSwitchImpl
public static Switch helpSwitch(String aDescription)
aDescription
- the descriptionHelpSwitchImpl
public static Switch helpSwitch()
HelpSwitchImpl
public static Switch sysInfoSwitch(String aDescription)
aDescription
- the descriptionSysInfoSwitchImpl
public static Switch sysInfoSwitch()
SysInfoSwitchImpl
public static Switch quietSwitch(String aDescription)
aDescription
- the descriptionQuietSwitchImpl
public static Switch quietSwitch()
QuietSwitchImpl
public static Switch verboseSwitch(String aDescription)
aDescription
- the descriptionVerboseSwitchImpl
public static Switch verboseSwitch()
VerboseSwitchImpl
public static Option<Integer> intOption(String aShortOption, String aLongOption, String aAlias, String aDescription)
aShortOption
- the short optionaLongOption
- the long optionaAlias
- the option arg nameaDescription
- the descriptionIntegerOptionImpl
public static Option<String> stringOption(String aShortOption, String aLongOption, String aAlias, String aDescription)
aShortOption
- the short optionaLongOption
- the long optionaAlias
- the option arg nameaDescription
- the descriptionStringOptionImpl
public static Operand<String> stringOperand(String aIdentifier, String aDescription)
aIdentifier
- the identifieraDescription
- the descriptionStringOperandImpl
Copyright © 2018. All rights reserved.