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