public class ParserGenerator extends Object
AeshCommandLineParser based on annotations defined in
the specified class.| Constructor and Description |
|---|
ParserGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static AeshCommandContainer |
generateCommandLineParser(Class<? extends Command> clazz) |
static AeshCommandContainer |
generateCommandLineParser(Command paramInstance) |
static void |
parseAndPopulate(Command instance,
String input) |
static void |
parseAndPopulate(Command instance,
String commandName,
String... input) |
public static AeshCommandContainer generateCommandLineParser(Command paramInstance) throws CommandLineParserException
CommandLineParserExceptionpublic static AeshCommandContainer generateCommandLineParser(Class<? extends Command> clazz) throws CommandLineParserException
CommandLineParserExceptionpublic static void parseAndPopulate(Command instance, String commandName, String... input) throws CommandLineParserException, OptionValidatorException
public static void parseAndPopulate(Command instance, String input) throws CommandLineParserException, OptionValidatorException
Copyright © 2024 JBoss by Red Hat. All rights reserved.