public class Parser extends Object
Arg annotation.
The parser supports the following types:
ArgsParserException is thrown.
Usage examples can be seen in the ParserTest class.| Modifier and Type | Method and Description |
|---|---|
static Parser |
getInstance() |
<ARGS> ARGS |
parse(String[] argsArray,
Class<ARGS> clazz)
Parse the arguments in the argsArray and set them as fields of a POJO of type ARGS.
|
public static Parser getInstance()
public <ARGS> ARGS parse(String[] argsArray, Class<ARGS> clazz) throws ArgsParserException
ARGS - argsArray - clazz - ArgsParserExceptionCopyright © 2018. All rights reserved.