| Package | Description |
|---|---|
| com.bluecirclesoft.open.getopt | |
| com.bluecirclesoft.open.getopt.converters |
| Modifier and Type | Method and Description |
|---|---|
OptionSpecification |
GetOpt.addFlag(String documentation,
Consumer<Boolean> onEncounter)
Add an option without an argument (a flag - true or false)
|
OptionSpecification |
OptionSpecification.addLongOpt(String opt) |
<T> OptionSpecification |
GetOpt.addParam(String paramMnemonic,
String documentation,
boolean required,
Class<T> type,
Consumer<T> onEncounter)
Add an option with argument (with a value to be passed in).
|
OptionSpecification |
GetOpt.addParam(String paramMnemonic,
String documentation,
boolean required,
Consumer<String> onEncounter)
Add an option with argument (with a value to be passed in).
|
OptionSpecification |
OptionSpecification.addShortOpt(Character opt) |
OptionSpecification |
GetOpt.getLongOpt(String str,
Collection<String> problems) |
OptionSpecification |
GetOpt.getShortOptProcessing(Character ch) |
static OptionSpecification |
OptionSpecification.makeFlag(GetOpt parent,
String documentation,
Consumer<Boolean> onEncounterNoArgument) |
static OptionSpecification |
OptionSpecification.makeOption(GetOpt parent,
String mnemonic,
String documentation,
boolean required,
ArgumentSpecification argumentSpecification,
Consumer<Boolean> onEncounterNoArgument,
BiConsumer<String,OptionSpecification> onEncounterWithArgument) |
| Modifier and Type | Method and Description |
|---|---|
Set<OptionSpecification> |
GetOpt.getOptions() |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
GetOpt.addLongOpt(OptionSpecification optionSpecification,
String opt) |
<T> void |
GetOpt.addShortOpt(OptionSpecification optionSpecification,
Character opt) |
T |
TypeConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Convert the given string into an object of the specified type
|
| Modifier and Type | Method and Description |
|---|---|
static OptionSpecification |
OptionSpecification.makeOption(GetOpt parent,
String mnemonic,
String documentation,
boolean required,
ArgumentSpecification argumentSpecification,
Consumer<Boolean> onEncounterNoArgument,
BiConsumer<String,OptionSpecification> onEncounterWithArgument) |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
BigIntegerConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a BigInteger or null.
|
Double |
DoubleConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Double or null.
|
String |
StringConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Pass-through "converter" of a string.
|
Byte |
ByteConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Byte or null.
|
Character |
CharConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Character or null.
|
Boolean |
BooleanConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Boolean or null.
|
BigDecimal |
BigDecimalConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a BigDecimal or null.
|
Short |
ShortConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Short or null.
|
Float |
FloatConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Float or null.
|
Integer |
IntegerConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Integer or null.
|
Long |
LongConverter.convert(String input,
GetOpt options,
OptionSpecification option)
Convert a string into a Long or null.
|
Copyright © 2015. All rights reserved.