Uses of Interface
joptsimple.OptionSpec
-
Packages that use OptionSpec Package Description joptsimple -
-
Uses of OptionSpec in joptsimple
Classes in joptsimple that implement OptionSpec Modifier and Type Class Description classAbstractOptionSpec<V>(package private) classAlternativeLongOptionSpecRepresents the"-W"form of long option specification.classArgumentAcceptingOptionSpec<V>Specification of an option that accepts an argument.(package private) classNoArgumentOptionSpecA specification for an option that does not accept arguments.classNonOptionArgumentSpec<V>Specification of a command line's non-option arguments.(package private) classOptionalArgumentOptionSpec<V>Specification of an option that accepts an optional argument.classOptionSpecBuilderAllows callers to specify whether a given option accepts arguments (required or optional).(package private) classRequiredArgumentOptionSpec<V>Specification of an option that accepts a required argument.Fields in joptsimple with type parameters of type OptionSpec Modifier and Type Field Description private java.util.Map<java.util.List<java.lang.String>,java.util.Set<OptionSpec<?>>>OptionParser. availableIfprivate java.util.Map<java.util.List<java.lang.String>,java.util.Set<OptionSpec<?>>>OptionParser. availableUnlessprivate java.util.List<OptionSpec<?>>OptionSet. detectedSpecsprivate java.util.Map<java.util.List<java.lang.String>,java.util.Set<OptionSpec<?>>>OptionParser. requiredIfprivate java.util.Map<java.util.List<java.lang.String>,java.util.Set<OptionSpec<?>>>OptionParser. requiredUnlessMethods in joptsimple that return types with arguments of type OptionSpec Modifier and Type Method 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.Methods in joptsimple with parameters of type OptionSpec Modifier and Type Method Description (package private) voidOptionParser. availableIf(java.util.List<java.lang.String> precedentSynonyms, OptionSpec<?> available)OptionSpecBuilderOptionSpecBuilder. 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) voidOptionParser. availableUnless(java.util.List<java.lang.String> precedentSynonyms, OptionSpec<?> available)OptionSpecBuilderOptionSpecBuilder. 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)booleanOptionSet. has(OptionSpec<?> option)Tells whether the given option was detected.booleanOptionSet. hasArgument(OptionSpec<?> option)Tells whether there are any arguments associated with the given option.private voidOptionParser. 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) voidOptionParser. requiredIf(java.util.List<java.lang.String> precedentSynonyms, OptionSpec<?> required)OptionSpecBuilderOptionSpecBuilder. 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) voidOptionParser. requiredUnless(java.util.List<java.lang.String> precedentSynonyms, OptionSpec<?> required)OptionSpecBuilderOptionSpecBuilder. 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.StringOptionException. specToString(OptionSpec<?> option)<V> VOptionSet. 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.Method parameters in joptsimple with type arguments of type OptionSpec Modifier and Type Method Description private booleanOptionParser. optionsHasAnyOf(OptionSet options, java.util.Collection<OptionSpec<?>> specs)private voidOptionParser. 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)Constructors in joptsimple with parameters of type OptionSpec Constructor Description MultipleArgumentsForOptionException(OptionSpec<?> options)OptionArgumentConversionException(OptionSpec<?> options, java.lang.String argument, java.lang.Throwable cause)OptionMissingRequiredArgumentException(OptionSpec<?> option)Constructor parameters in joptsimple with type arguments of type OptionSpec Constructor 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)
-