public class CharOptionHandler extends OneArgumentOptionHandler<Character>
option, owner, setter
Constructor and Description |
---|
CharOptionHandler(CmdLineParser parser,
OptionDef option,
Setter<? super Character> setter) |
Modifier and Type | Method and Description |
---|---|
protected Character |
parse(String argument)
Parses a string to a real value of Type <T>.
|
getDefaultMetaVariable, parseArguments
getMetaVariable, getNameAndMeta, getNameAndMeta, print, printDefaultValue
public CharOptionHandler(CmdLineParser parser, OptionDef option, Setter<? super Character> setter)
protected Character parse(String argument) throws NumberFormatException, CmdLineException
OneArgumentOptionHandler
parse
in class OneArgumentOptionHandler<Character>
argument
- String value to parseNumberFormatException
- if parsing is not possibleCmdLineException
- if the parsing encounters a failure that should be reported to the user.Copyright © 2003-2016 Kohsuke Kawaguchi. All Rights Reserved.