public interface CommandLineParser<C extends Command>
| Modifier and Type | Method and Description |
|---|---|
void |
addChildParser(CommandLineParser<? extends Command> childParser) |
void |
clear() |
java.util.List<CommandLineParser<? extends Command>> |
getAllChildParsers() |
java.util.List<java.lang.String> |
getAllNames() |
CommandLineParser<? extends Command> |
getChildParser(java.lang.String name) |
C |
getCommand() |
CommandPopulator |
getCommandPopulator() |
CommandLineCompletionParser |
getCompletionParser() |
ProcessedCommand<C> |
getProcessedCommand() |
boolean |
isGroupCommand() |
CommandLine<? extends Command> |
parse(AeshLine line,
boolean ignoreRequirements) |
CommandLine<? extends Command> |
parse(java.util.List<java.lang.String> lines,
boolean ignoreRequirements)
Parse a command line with the defined command as base of the rules.
|
CommandLine<? extends Command> |
parse(java.lang.String line)
Parse a command line with the defined command as base of the rules.
|
CommandLine<? extends Command> |
parse(java.lang.String line,
boolean ignoreRequirements)
Parse a command line with the defined command as base of the rules.
|
java.lang.String |
printHelp()
Returns a usage String based on the defined command and options.
|
void |
setChild(boolean b) |
ProcessedCommand<C> getProcessedCommand()
C getCommand()
CommandLineCompletionParser getCompletionParser()
java.util.List<java.lang.String> getAllNames()
CommandLineParser<? extends Command> getChildParser(java.lang.String name)
name - commandvoid addChildParser(CommandLineParser<? extends Command> childParser)
java.util.List<CommandLineParser<? extends Command>> getAllChildParsers()
CommandPopulator getCommandPopulator()
java.lang.String printHelp()
CommandLine<? extends Command> parse(java.lang.String line)
CommandLine object where
they can be queried after.line - inputCommandLine<? extends Command> parse(java.lang.String line, boolean ignoreRequirements)
CommandLine object where
they can be queried after.line - inputignoreRequirements - if we should ignoreCommandLine<? extends Command> parse(AeshLine line, boolean ignoreRequirements)
CommandLine<? extends Command> parse(java.util.List<java.lang.String> lines, boolean ignoreRequirements)
lines - inputignoreRequirements - if we should ignorevoid clear()
boolean isGroupCommand()
void setChild(boolean b)