| Package | Description |
|---|---|
| joptsimple | |
| joptsimple.internal | |
| joptsimple.util |
| Modifier and Type | Field and Description |
|---|---|
private ValueConverter<V> |
ArgumentAcceptingOptionSpec.converter |
private ValueConverter<V> |
NonOptionArgumentSpec.converter |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
AbstractOptionSpec.argumentTypeIndicatorFrom(ValueConverter<V> converter) |
protected V |
AbstractOptionSpec.convertWith(ValueConverter<V> converter,
java.lang.String argument) |
<T> ArgumentAcceptingOptionSpec<T> |
ArgumentAcceptingOptionSpec.withValuesConvertedBy(ValueConverter<T> aConverter)
Specifies a converter to use to translate arguments of this spec's option into Java objects.
|
<T> NonOptionArgumentSpec<T> |
NonOptionArgumentSpec.withValuesConvertedBy(ValueConverter<T> aConverter)
Specifies a converter to use to translate non-option arguments into Java objects.
|
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
ConstructorInvokingValueConverter<V> |
(package private) class |
MethodInvokingValueConverter<V> |
| Modifier and Type | Method and Description |
|---|---|
private static <V> ValueConverter<V> |
Reflection.constructorConverter(java.lang.Class<V> clazz) |
static <V> ValueConverter<V> |
Reflection.findConverter(java.lang.Class<V> clazz)
Finds an appropriate value converter for the given class.
|
private static <V> ValueConverter<V> |
Reflection.valueOfConverter(java.lang.Class<V> clazz) |
| Modifier and Type | Method and Description |
|---|---|
static <V> V |
Reflection.convertWith(ValueConverter<V> converter,
java.lang.String raw) |
| Modifier and Type | Class and Description |
|---|---|
class |
DateConverter
Converts values to
Dates using a DateFormat object. |
class |
EnumConverter<E extends java.lang.Enum<E>>
Converts values to
Enums. |
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<java.lang.String> |
RegexMatcher.regex(java.lang.String pattern)
Gives a matcher that uses the given regular expression.
|