| Package | Description |
|---|---|
| joptsimple |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractOptionSpec<V> |
(package private) class |
AlternativeLongOptionSpec
Represents the
"-W" form of long option specification. |
class |
ArgumentAcceptingOptionSpec<V>
Specification of an option that accepts an argument.
|
(package private) class |
NoArgumentOptionSpec
A specification for an option that does not accept arguments.
|
class |
NonOptionArgumentSpec<V>
Specification of a command line's non-option arguments.
|
(package private) class |
OptionalArgumentOptionSpec<V>
Specification of an option that accepts an optional argument.
|
class |
OptionSpecBuilder
Allows callers to specify whether a given option accepts arguments (required or optional).
|
(package private) class |
RequiredArgumentOptionSpec<V>
Specification of an option that accepts a required argument.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.util.List<java.lang.String>,java.util.Set<OptionSpec<?>>> |
OptionParser.availableIf |
private java.util.Map<java.util.List<java.lang.String>,java.util.Set<OptionSpec<?>>> |
OptionParser.availableUnless |
private java.util.List<OptionSpec<?>> |
OptionSet.detectedSpecs |
private java.util.Map<java.util.List<java.lang.String>,java.util.Set<OptionSpec<?>>> |
OptionParser.requiredIf |
private java.util.Map<java.util.List<java.lang.String>,java.util.Set<OptionSpec<?>>> |
OptionParser.requiredUnless |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<OptionSpec<?>,java.util.List<?>> |
OptionSet.asMap()
Gives all declared options as a map of string to OptionSpec.
|
java.util.Map<java.lang.String,OptionSpec<?>> |
OptionParser.recognizedOptions()
Retrieves all options-spec pairings which have been configured for the parser in the same order as declared
during training.
|
java.util.List<OptionSpec<?>> |
OptionSet.specs()
Gives the set of options that were detected, in the form of OptionSpecs, in the order in which the
options were found on the command line.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
OptionParser.availableIf(java.util.List<java.lang.String> precedentSynonyms,
OptionSpec<?> available) |
OptionSpecBuilder |
OptionSpecBuilder.availableIf(OptionSpec<?> dependent,
OptionSpec<?>... otherDependents)
Informs an option parser that this builder's option is allowed if the given option is present on the command
line.
|
OptionSpecBuilder |
OptionSpecBuilder.availableIf(OptionSpec<?> dependent,
OptionSpec<?>... otherDependents)
Informs an option parser that this builder's option is allowed if the given option is present on the command
line.
|
(package private) void |
OptionParser.availableUnless(java.util.List<java.lang.String> precedentSynonyms,
OptionSpec<?> available) |
OptionSpecBuilder |
OptionSpecBuilder.availableUnless(OptionSpec<?> dependent,
OptionSpec<?>... otherDependents)
Informs an option parser that this builder's option is allowed if the given option is absent on the command
line.
|
OptionSpecBuilder |
OptionSpecBuilder.availableUnless(OptionSpec<?> dependent,
OptionSpec<?>... otherDependents)
Informs an option parser that this builder's option is allowed if the given option is absent on the command
line.
|
private <V> java.util.List<V> |
OptionSet.defaultValueFor(OptionSpec<V> option) |
boolean |
OptionSet.has(OptionSpec<?> option)
Tells whether the given option was detected.
|
boolean |
OptionSet.hasArgument(OptionSpec<?> option)
Tells whether there are any arguments associated with the given option.
|
private void |
OptionParser.putDependentOption(java.util.List<java.lang.String> precedentSynonyms,
OptionSpec<?> required,
java.util.Map<java.util.List<java.lang.String>,java.util.Set<OptionSpec<?>>> target) |
(package private) void |
OptionParser.requiredIf(java.util.List<java.lang.String> precedentSynonyms,
OptionSpec<?> required) |
OptionSpecBuilder |
OptionSpecBuilder.requiredIf(OptionSpec<?> dependent,
OptionSpec<?>... otherDependents)
Informs an option parser that this builder's option is required if the given option is present on the command
line.
|
OptionSpecBuilder |
OptionSpecBuilder.requiredIf(OptionSpec<?> dependent,
OptionSpec<?>... otherDependents)
Informs an option parser that this builder's option is required if the given option is present on the command
line.
|
(package private) void |
OptionParser.requiredUnless(java.util.List<java.lang.String> precedentSynonyms,
OptionSpec<?> required) |
OptionSpecBuilder |
OptionSpecBuilder.requiredUnless(OptionSpec<?> dependent,
OptionSpec<?>... otherDependents)
Informs an option parser that this builder's option is required if the given option is absent on the command
line.
|
OptionSpecBuilder |
OptionSpecBuilder.requiredUnless(OptionSpec<?> dependent,
OptionSpec<?>... otherDependents)
Informs an option parser that this builder's option is required if the given option is absent on the command
line.
|
private java.lang.String |
OptionException.specToString(OptionSpec<?> option) |
<V> V |
OptionSet.valueOf(OptionSpec<V> option)
Gives the argument associated with the given option.
|
<V> java.util.List<V> |
OptionSet.valuesOf(OptionSpec<V> option)
Gives any arguments associated with the given option.
|
| Modifier and Type | Method and Description |
|---|---|
private boolean |
OptionParser.optionsHasAnyOf(OptionSet options,
java.util.Collection<OptionSpec<?>> specs) |
private void |
OptionParser.putDependentOption(java.util.List<java.lang.String> precedentSynonyms,
OptionSpec<?> required,
java.util.Map<java.util.List<java.lang.String>,java.util.Set<OptionSpec<?>>> target) |
private java.util.List<java.lang.String> |
OptionException.specsToStrings(java.util.Collection<? extends OptionSpec<?>> options) |
| Constructor and Description |
|---|
MultipleArgumentsForOptionException(OptionSpec<?> options) |
OptionArgumentConversionException(OptionSpec<?> options,
java.lang.String argument,
java.lang.Throwable cause) |
OptionMissingRequiredArgumentException(OptionSpec<?> option) |
| Constructor and Description |
|---|
MissingRequiredOptionsException(java.util.List<? extends OptionSpec<?>> missingRequiredOptions) |
OptionException(java.util.Collection<? extends OptionSpec<?>> options) |
OptionException(java.util.Collection<? extends OptionSpec<?>> options,
java.lang.Throwable cause) |
UnavailableOptionException(java.util.List<? extends OptionSpec<?>> forbiddenOptions) |