jargs.gnu

Class CmdLineParser.Option.DoubleOption

Enclosing Class:
CmdLineParser.Option

public static class CmdLineParser.Option.DoubleOption
extends CmdLineParser.Option

An option that expects a floating-point value

Nested Class Summary

Nested classes/interfaces inherited from class jargs.gnu.CmdLineParser.Option

CmdLineParser.Option.BooleanOption, CmdLineParser.Option.DoubleOption, CmdLineParser.Option.IntegerOption, CmdLineParser.Option.LongOption, CmdLineParser.Option.StringOption

Constructor Summary

DoubleOption(String longForm)
DoubleOption(char shortForm, String longForm)

Method Summary

protected Object
parseValue(String arg, Locale locale)
Override to extract and convert an option value passed on the command-line

Methods inherited from class jargs.gnu.CmdLineParser.Option

getValue, longForm, parseValue, shortForm, wantsValue

Constructor Details

DoubleOption

public DoubleOption(String longForm)

DoubleOption

public DoubleOption(char shortForm,
                    String longForm)

Method Details

parseValue

protected Object parseValue(String arg,
                            Locale locale)
            throws CmdLineParser.IllegalOptionValueException
Override to extract and convert an option value passed on the command-line
Overrides:
parseValue in interface CmdLineParser.Option

Copyright © 2001-2003 Steve Purcell. Copyright © 2002 Vidar Holen. Copyright © 2002 Michal Ceresna. Copyright © 2005 Ewan Mellor. Released under the terms of the BSD licence.