Top Description Constructors Methods
jdk.internal.joptsimple

pack-priv Class OptionalArgumentOptionSpec<V>

extends ArgumentAcceptingOptionSpec<V>
Class Inheritance
Type Parameters
<V>
represents the type of the arguments this option accepts
Imports
java.util.List

Specification of an option that accepts an optional argument.
Author
Paul Holser

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected void
private void
handleOptionArgument(OptionParser parser, OptionSet detectedOptions, ArgumentList arguments)

Inherited from jdk.internal.joptsimple.ArgumentAcceptingOptionSpec:
acceptsArgumentsaddArgumentsargumentDescriptionargumentTypeIndicatorcanConvertArgumentconvertdefaultsTodefaultsTodefaultValuesdescribedAsequalshandleOptionhashCodeisArgumentOfNumberTypeisRequiredofTyperequiredrequiresArgumentwithValuesConvertedBywithValuesSeparatedBywithValuesSeparatedBy

Constructor Detail

OptionalArgumentOptionSpecback to summary
pack-priv OptionalArgumentOptionSpec(String option)
OptionalArgumentOptionSpecback to summary
pack-priv OptionalArgumentOptionSpec(List<String> options, String description)

Method Detail

detectOptionArgumentback to summary
protected void detectOptionArgument(OptionParser parser, ArgumentList arguments, OptionSet detectedOptions)

Implements abstract jdk.internal.joptsimple.ArgumentAcceptingOptionSpec.detectOptionArgument.

Annotations
@Override
handleOptionArgumentback to summary
private void handleOptionArgument(OptionParser parser, OptionSet detectedOptions, ArgumentList arguments)