public class IntOptionHandler extends OneArgumentOptionHandler<Integer>
option, owner, setter
Constructor and Description |
---|
IntOptionHandler(CmdLineParser parser,
OptionDef option,
Setter<? super Integer> setter) |
Modifier and Type | Method and Description |
---|---|
protected Integer |
parse(String argument)
Parses a string to a real value of Type <T>.
|
getDefaultMetaVariable, parseArguments
getMetaVariable, getNameAndMeta, getNameAndMeta, print, printDefaultValue
public IntOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super Integer> setter)
protected Integer parse(String argument) throws NumberFormatException
OneArgumentOptionHandler
parse
in class OneArgumentOptionHandler<Integer>
argument
- String value to parseNumberFormatException
- if parsing is not possibleCopyright © 2003-2016 Kohsuke Kawaguchi. All Rights Reserved.