public class ParserGenerator
extends java.lang.Object
AeshCommandLineParser based on annotations defined in
the specified class.| Constructor and Description |
|---|
ParserGenerator() |
| Modifier and Type | Method and Description |
|---|---|
private static AeshCommandContainer |
doGenerateCommandLineParser(Command commandObject) |
static AeshCommandContainer |
generateCommandLineParser(java.lang.Class<? extends Command> clazz) |
static AeshCommandContainer |
generateCommandLineParser(Command paramInstance) |
static void |
parseAndPopulate(Command instance,
java.lang.String input) |
static void |
parseAndPopulate(Command instance,
java.lang.String commandName,
java.lang.String... input) |
private static void |
processCommand(ProcessedCommand processedCommand,
java.lang.Class clazz) |
private static void |
processField(ProcessedCommand processedCommand,
java.lang.reflect.Field field) |
public static AeshCommandContainer generateCommandLineParser(Command paramInstance) throws CommandLineParserException
CommandLineParserExceptionpublic static AeshCommandContainer generateCommandLineParser(java.lang.Class<? extends Command> clazz) throws CommandLineParserException
CommandLineParserExceptionprivate static AeshCommandContainer doGenerateCommandLineParser(Command commandObject) throws CommandLineParserException
CommandLineParserExceptionprivate static void processCommand(ProcessedCommand processedCommand, java.lang.Class clazz) throws CommandLineParserException
CommandLineParserExceptionprivate static void processField(ProcessedCommand processedCommand, java.lang.reflect.Field field) throws CommandLineParserException
CommandLineParserExceptionpublic static void parseAndPopulate(Command instance, java.lang.String commandName, java.lang.String... input) throws CommandLineParserException, OptionValidatorException
public static void parseAndPopulate(Command instance, java.lang.String input) throws CommandLineParserException, OptionValidatorException