APIdia Launch Partner
Top Description Constructors Methods
jdk.internal.joptsimple

pack-priv Class NoArgumentOptionSpec

extends AbstractOptionSpec<Void>
Class Inheritance
Known Direct Subclasses
jdk.internal.joptsimple.OptionSpecBuilder
Imports
java.util.List

A specification for an option that does not accept arguments.
Author
Paul Holser

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
NoArgumentOptionSpec(List<String> options, String description)

Method Summary

Modifier and TypeMethod and Description
public boolean
public String
public String
argumentTypeIndicator()

Implements jdk.internal.joptsimple.OptionDescriptor.argumentTypeIndicator.

Gives an indication of the expected type of the option's argument.

protected Void
public List<Void>
defaultValues()

Implements jdk.internal.joptsimple.OptionDescriptor.defaultValues.

What values will the option take if none are specified on the command line?

pack-priv void
handleOption(OptionParser parser, ArgumentList arguments, OptionSet detectedOptions, String detectedArgument)

Implements abstract jdk.internal.joptsimple.AbstractOptionSpec.handleOption.

public boolean
isRequired()

Implements jdk.internal.joptsimple.OptionDescriptor.isRequired.

Is this option required on a command line?

public boolean
Inherited from jdk.internal.joptsimple.AbstractOptionSpec:
argumentTypeIndicatorFromconvertWithdescriptionequalsforHelphashCodeisForHelpoptionsrepresentsNonOptionstoStringvaluevalues

Constructor Detail

NoArgumentOptionSpecback to summary
pack-priv NoArgumentOptionSpec(String option)
NoArgumentOptionSpecback to summary
pack-priv NoArgumentOptionSpec(List<String> options, String description)

Method Detail

acceptsArgumentsback to summary
public boolean acceptsArguments()

Implements jdk.internal.joptsimple.OptionDescriptor.acceptsArguments.

Doc from jdk.internal.joptsimple.OptionDescriptor.acceptsArguments.

Does this option accept arguments?

argumentDescriptionback to summary
public String argumentDescription()

Implements jdk.internal.joptsimple.OptionDescriptor.argumentDescription.

Doc from jdk.internal.joptsimple.OptionDescriptor.argumentDescription.

Gives a short description of the option's argument.

argumentTypeIndicatorback to summary
public String argumentTypeIndicator()

Implements jdk.internal.joptsimple.OptionDescriptor.argumentTypeIndicator.

Doc from jdk.internal.joptsimple.OptionDescriptor.argumentTypeIndicator.

Gives an indication of the expected type of the option's argument.

convertback to summary
protected Void convert(String argument)

Implements abstract jdk.internal.joptsimple.AbstractOptionSpec.convert.

Annotations
@Override
defaultValuesback to summary
public List<Void> defaultValues()

Implements jdk.internal.joptsimple.OptionDescriptor.defaultValues.

Doc from jdk.internal.joptsimple.OptionDescriptor.defaultValues.

What values will the option take if none are specified on the command line?

handleOptionback to summary
pack-priv void handleOption(OptionParser parser, ArgumentList arguments, OptionSet detectedOptions, String detectedArgument)

Implements abstract jdk.internal.joptsimple.AbstractOptionSpec.handleOption.

Annotations
@Override
isRequiredback to summary
public boolean isRequired()

Implements jdk.internal.joptsimple.OptionDescriptor.isRequired.

Doc from jdk.internal.joptsimple.OptionDescriptor.isRequired.

Is this option required on a command line?

requiresArgumentback to summary
public boolean requiresArgument()

Implements jdk.internal.joptsimple.OptionDescriptor.requiresArgument.

Doc from jdk.internal.joptsimple.OptionDescriptor.requiresArgument.

Does this option require an argument?