Package | Description |
---|---|
joptsimple | |
joptsimple.internal | |
joptsimple.util |
Modifier and Type | Method and Description |
---|---|
protected String |
AbstractOptionSpec.argumentTypeIndicatorFrom(ValueConverter<V> converter) |
protected V |
AbstractOptionSpec.convertWith(ValueConverter<V> converter,
String argument) |
<T> NonOptionArgumentSpec<T> |
NonOptionArgumentSpec.withValuesConvertedBy(ValueConverter<T> aConverter)
Specifies a converter to use to translate non-option arguments into Java objects.
|
<T> ArgumentAcceptingOptionSpec<T> |
ArgumentAcceptingOptionSpec.withValuesConvertedBy(ValueConverter<T> aConverter)
Specifies a converter to use to translate arguments of this spec's option into Java objects.
|
Modifier and Type | Method and Description |
---|---|
static <V> ValueConverter<V> |
Reflection.findConverter(Class<V> clazz)
Finds an appropriate value converter for the given class.
|
Modifier and Type | Method and Description |
---|---|
static <V> V |
Reflection.convertWith(ValueConverter<V> converter,
String raw) |
Modifier and Type | Class and Description |
---|---|
class |
DateConverter
Converts values to
Date s using a DateFormat object. |
class |
EnumConverter<E extends Enum<E>>
Converts values to
Enum s. |
class |
InetAddressConverter
Converts values to
InetAddress using getByName . |
class |
PathConverter
Converts command line options to
Path objects and checks the status of the underlying file. |
class |
RegexMatcher
Ensures that values entirely match a regular expression.
|
Modifier and Type | Method and Description |
---|---|
static ValueConverter<String> |
RegexMatcher.regex(String pattern)
Gives a matcher that uses the given regular expression.
|
Copyright © 2016. All Rights Reserved.