public class CLICommandContainer.CLICommandParser extends Object implements org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>
| Constructor and Description |
|---|
CLICommandParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildParser(org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>> childParser) |
void |
clear() |
void |
complete(org.aesh.complete.AeshCompleteOperation completeOperation,
org.aesh.command.invocation.InvocationProviders invocationProviders) |
void |
complete(org.aesh.complete.AeshCompleteOperation completeOperation,
org.aesh.parser.ParsedLine line,
org.aesh.command.invocation.InvocationProviders invocationProviders) |
void |
doPopulate(org.aesh.command.impl.internal.ProcessedCommand processedCommand,
org.aesh.command.invocation.InvocationProviders invocationProviders,
org.aesh.readline.AeshContext aeshContext,
org.aesh.command.impl.parser.CommandLineParser.Mode mode) |
List<org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>> |
getAllChildParsers() |
List<String> |
getAllNames() |
org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>> |
getChildParser(String name) |
org.aesh.command.Command |
getCommand() |
org.aesh.command.populator.CommandPopulator |
getCommandPopulator() |
org.aesh.command.impl.parser.CommandLineCompletionParser |
getCompletionParser() |
org.aesh.command.impl.internal.ProcessedCommand<org.aesh.command.Command<CLICommandInvocation>> |
getProcessedCommand() |
org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>> |
getWrappedParser() |
boolean |
isGroupCommand() |
org.aesh.command.impl.internal.ProcessedOption |
lastParsedOption() |
void |
parse(org.aesh.parser.ParsedLineIterator iterator,
org.aesh.command.impl.parser.CommandLineParser.Mode mode) |
void |
parse(String line) |
void |
parse(String line,
org.aesh.command.impl.parser.CommandLineParser.Mode mode) |
org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>> |
parsedCommand() |
void |
populateObject(String line,
org.aesh.command.invocation.InvocationProviders invocationProviders,
org.aesh.readline.AeshContext aeshContext,
org.aesh.command.impl.parser.CommandLineParser.Mode mode) |
String |
printHelp() |
void |
setChild(boolean b) |
public org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>> getWrappedParser()
public org.aesh.command.impl.internal.ProcessedCommand<org.aesh.command.Command<CLICommandInvocation>> getProcessedCommand()
getProcessedCommand in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public org.aesh.command.Command getCommand()
getCommand in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public org.aesh.command.impl.parser.CommandLineCompletionParser getCompletionParser()
getCompletionParser in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public List<String> getAllNames()
getAllNames in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>> getChildParser(String name)
getChildParser in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public void addChildParser(org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>> childParser) throws org.aesh.command.parser.CommandLineParserException
addChildParser in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>org.aesh.command.parser.CommandLineParserExceptionpublic List<org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>> getAllChildParsers()
getAllChildParsers in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public org.aesh.command.populator.CommandPopulator getCommandPopulator()
getCommandPopulator in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public String printHelp()
printHelp in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public void parse(String line)
parse in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public void parse(String line, org.aesh.command.impl.parser.CommandLineParser.Mode mode)
parse in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public void parse(org.aesh.parser.ParsedLineIterator iterator,
org.aesh.command.impl.parser.CommandLineParser.Mode mode)
parse in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public void clear()
clear in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public boolean isGroupCommand()
isGroupCommand in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public void setChild(boolean b)
setChild in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public void populateObject(String line, org.aesh.command.invocation.InvocationProviders invocationProviders, org.aesh.readline.AeshContext aeshContext, org.aesh.command.impl.parser.CommandLineParser.Mode mode) throws org.aesh.command.parser.CommandLineParserException, org.aesh.command.validator.OptionValidatorException
populateObject in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>org.aesh.command.parser.CommandLineParserExceptionorg.aesh.command.validator.OptionValidatorExceptionpublic org.aesh.command.impl.internal.ProcessedOption lastParsedOption()
lastParsedOption in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>> parsedCommand()
parsedCommand in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public void complete(org.aesh.complete.AeshCompleteOperation completeOperation,
org.aesh.command.invocation.InvocationProviders invocationProviders)
complete in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public void complete(org.aesh.complete.AeshCompleteOperation completeOperation,
org.aesh.parser.ParsedLine line,
org.aesh.command.invocation.InvocationProviders invocationProviders)
complete in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>public void doPopulate(org.aesh.command.impl.internal.ProcessedCommand processedCommand,
org.aesh.command.invocation.InvocationProviders invocationProviders,
org.aesh.readline.AeshContext aeshContext,
org.aesh.command.impl.parser.CommandLineParser.Mode mode)
throws org.aesh.command.parser.CommandLineParserException,
org.aesh.command.validator.OptionValidatorException
doPopulate in interface org.aesh.command.impl.parser.CommandLineParser<org.aesh.command.Command<CLICommandInvocation>>org.aesh.command.parser.CommandLineParserExceptionorg.aesh.command.validator.OptionValidatorExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.