jargs.gnu

Class CmdLineParser.Option.IntegerOption

Enclosing Class:
CmdLineParser.Option

public static class CmdLineParser.Option.IntegerOption
extends CmdLineParser.Option

An option that expects an integer 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

IntegerOption(String longForm)
IntegerOption(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

IntegerOption

public IntegerOption(String longForm)

IntegerOption

public IntegerOption(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.