Class LegacyCommandContainer.CommandParser
- java.lang.Object
-
- org.jboss.as.cli.impl.aesh.cmd.operation.LegacyCommandContainer.CommandParser
-
- All Implemented Interfaces:
org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
- Enclosing class:
- LegacyCommandContainer
public class LegacyCommandContainer.CommandParser extends Object implements org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
-
Constructor Summary
Constructors Constructor Description CommandParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddChildParser(org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> childParser)voidclear()voidcomplete(org.aesh.complete.AeshCompleteOperation co, org.aesh.command.invocation.InvocationProviders invocationProviders)voidcomplete(org.aesh.complete.AeshCompleteOperation completeOperation, org.aesh.parser.ParsedLine line, org.aesh.command.invocation.InvocationProviders invocationProviders)voiddoPopulate(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<CLICommandInvocation>>getAllChildParsers()List<String>getAllNames()org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>getChildParser(String name)org.aesh.command.CommandgetCommand()org.aesh.command.populator.CommandPopulator<Object,CLICommandInvocation>getCommandPopulator()org.aesh.command.impl.parser.CommandLineCompletionParsergetCompletionParser()StringgetFormattedCommand(int offset, int descriptionStart)org.aesh.command.impl.internal.ProcessedCommand<org.aesh.command.Command<CLICommandInvocation>,CLICommandInvocation>getProcessedCommand()booleanisGroupCommand()org.aesh.command.impl.internal.ProcessedOptionlastParsedOption()voidparse(String line)voidparse(String line, org.aesh.command.impl.parser.CommandLineParser.Mode mode)voidparse(org.aesh.parser.ParsedLineIterator iterator, org.aesh.command.impl.parser.CommandLineParser.Mode mode)org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>parsedCommand()voidpopulateObject(String line, org.aesh.command.invocation.InvocationProviders invocationProviders, org.aesh.readline.AeshContext aeshContext, org.aesh.command.impl.parser.CommandLineParser.Mode mode)StringprintHelp()voidsetChild(boolean b)voidupdateAnsiMode(boolean mode)
-
-
-
Method Detail
-
getProcessedCommand
public org.aesh.command.impl.internal.ProcessedCommand<org.aesh.command.Command<CLICommandInvocation>,CLICommandInvocation> getProcessedCommand()
- Specified by:
getProcessedCommandin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
getCommand
public org.aesh.command.Command getCommand()
- Specified by:
getCommandin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
getCompletionParser
public org.aesh.command.impl.parser.CommandLineCompletionParser getCompletionParser()
- Specified by:
getCompletionParserin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
getAllNames
public List<String> getAllNames()
- Specified by:
getAllNamesin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
getChildParser
public org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> getChildParser(String name)
- Specified by:
getChildParserin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
addChildParser
public void addChildParser(org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> childParser)
- Specified by:
addChildParserin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
getAllChildParsers
public List<org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>> getAllChildParsers()
- Specified by:
getAllChildParsersin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
getCommandPopulator
public org.aesh.command.populator.CommandPopulator<Object,CLICommandInvocation> getCommandPopulator()
- Specified by:
getCommandPopulatorin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
populateObject
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
- Specified by:
populateObjectin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>- Throws:
org.aesh.command.parser.CommandLineParserExceptionorg.aesh.command.validator.OptionValidatorException
-
printHelp
public String printHelp()
- Specified by:
printHelpin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
parse
public void parse(String line)
- Specified by:
parsein interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
lastParsedOption
public org.aesh.command.impl.internal.ProcessedOption lastParsedOption()
- Specified by:
lastParsedOptionin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
parse
public void parse(String line, org.aesh.command.impl.parser.CommandLineParser.Mode mode)
- Specified by:
parsein interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
parse
public void parse(org.aesh.parser.ParsedLineIterator iterator, org.aesh.command.impl.parser.CommandLineParser.Mode mode)- Specified by:
parsein interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
isGroupCommand
public boolean isGroupCommand()
- Specified by:
isGroupCommandin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
setChild
public void setChild(boolean b)
- Specified by:
setChildin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
parsedCommand
public org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> parsedCommand()
- Specified by:
parsedCommandin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
complete
public void complete(org.aesh.complete.AeshCompleteOperation co, org.aesh.command.invocation.InvocationProviders invocationProviders)- Specified by:
completein interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
complete
public void complete(org.aesh.complete.AeshCompleteOperation completeOperation, org.aesh.parser.ParsedLine line, org.aesh.command.invocation.InvocationProviders invocationProviders)- Specified by:
completein interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
doPopulate
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- Specified by:
doPopulatein interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>- Throws:
org.aesh.command.parser.CommandLineParserExceptionorg.aesh.command.validator.OptionValidatorException
-
updateAnsiMode
public void updateAnsiMode(boolean mode)
- Specified by:
updateAnsiModein interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
getFormattedCommand
public String getFormattedCommand(int offset, int descriptionStart)
- Specified by:
getFormattedCommandin interfaceorg.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
-
-