Package jargs.gnu
Class CmdLineParser.Option.IntegerOption
java.lang.Object
jargs.gnu.CmdLineParser.Option
jargs.gnu.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
Constructors Constructor Description IntegerOption(char shortForm, java.lang.String longForm)
IntegerOption(java.lang.String longForm)
-
Method Summary
Modifier and Type Method Description protected java.lang.Object
parseValue(java.lang.String arg, java.util.Locale locale)
Override to extract and convert an option value passed on the command-lineMethods inherited from class jargs.gnu.CmdLineParser.Option
getValue, longForm, shortForm, wantsValue
-
Constructor Details
-
IntegerOption
public IntegerOption(char shortForm, java.lang.String longForm) -
IntegerOption
public IntegerOption(java.lang.String longForm)
-
-
Method Details
-
parseValue
protected java.lang.Object parseValue(java.lang.String arg, java.util.Locale locale) throws CmdLineParser.IllegalOptionValueExceptionDescription copied from class:CmdLineParser.Option
Override to extract and convert an option value passed on the command-line- Overrides:
parseValue
in classCmdLineParser.Option
- Throws:
CmdLineParser.IllegalOptionValueException
-