Uses of Interface
joptsimple.OptionSpec
Packages that use OptionSpec
-
Uses of OptionSpec in joptsimple
Classes in joptsimple that implement OptionSpecModifier and TypeClassDescriptionclass
(package private) class
Represents the"-W"
form of long option specification.class
Specification of an option that accepts an argument.(package private) class
A specification for an option that does not accept arguments.class
Specification of a command line's non-option arguments.(package private) class
Specification of an option that accepts an optional argument.class
Allows callers to specify whether a given option accepts arguments (required or optional).(package private) class
Specification of an option that accepts a required argument.Fields in joptsimple with type parameters of type OptionSpecModifier and TypeFieldDescriptionprivate final Map<List<String>,
Set<OptionSpec<?>>> OptionParser.availableIf
private final Map<List<String>,
Set<OptionSpec<?>>> OptionParser.availableUnless
private final List<OptionSpec<?>>
OptionSet.detectedSpecs
private final Map<List<String>,
Set<OptionSpec<?>>> OptionParser.requiredIf
private final Map<List<String>,
Set<OptionSpec<?>>> OptionParser.requiredUnless
Methods in joptsimple that return types with arguments of type OptionSpecModifier and TypeMethodDescriptionMap<OptionSpec<?>,
List<?>> OptionSet.asMap()
Gives all declared options as a map of string to OptionSpec.Map<String,
OptionSpec<?>> OptionParser.recognizedOptions()
Retrieves all options-spec pairings which have been configured for the parser in the same order as declared during training.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.Methods in joptsimple with parameters of type OptionSpecModifier and TypeMethodDescription(package private) void
OptionParser.availableIf
(List<String> precedentSynonyms, OptionSpec<?> available) 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
(List<String> precedentSynonyms, OptionSpec<?> available) 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> 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
(List<String> precedentSynonyms, OptionSpec<?> required, Map<List<String>, Set<OptionSpec<?>>> target) (package private) void
OptionParser.requiredIf
(List<String> precedentSynonyms, OptionSpec<?> required) 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
(List<String> precedentSynonyms, OptionSpec<?> required) 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 String
OptionException.specToString
(OptionSpec<?> option) <V> V
OptionSet.valueOf
(OptionSpec<V> option) Gives the argument associated with the given option.<V> List<V>
OptionSet.valuesOf
(OptionSpec<V> option) Gives any arguments associated with the given option.Method parameters in joptsimple with type arguments of type OptionSpecModifier and TypeMethodDescriptionprivate boolean
OptionParser.optionsHasAnyOf
(OptionSet options, Collection<OptionSpec<?>> specs) private void
OptionParser.putDependentOption
(List<String> precedentSynonyms, OptionSpec<?> required, Map<List<String>, Set<OptionSpec<?>>> target) OptionException.specsToStrings
(Collection<? extends OptionSpec<?>> options) Constructors in joptsimple with parameters of type OptionSpecModifierConstructorDescription(package private)
MultipleArgumentsForOptionException
(OptionSpec<?> options) (package private)
OptionArgumentConversionException
(OptionSpec<?> options, String argument, Throwable cause) (package private)
OptionMissingRequiredArgumentException
(OptionSpec<?> option) Constructor parameters in joptsimple with type arguments of type OptionSpecModifierConstructorDescriptionprotected
MissingRequiredOptionsException
(List<? extends OptionSpec<?>> missingRequiredOptions) protected
OptionException
(Collection<? extends OptionSpec<?>> options) protected
OptionException
(Collection<? extends OptionSpec<?>> options, Throwable cause) (package private)
UnavailableOptionException
(List<? extends OptionSpec<?>> forbiddenOptions)