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