Class CLICommandContainer.CLICommandParser

    • Constructor Detail

      • CLICommandParser

        public CLICommandParser()
    • Method Detail

      • getWrappedParser

        public org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> getWrappedParser()
      • getCommand

        public org.aesh.command.Command getCommand()
        Specified by:
        getCommand in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • getCompletionParser

        public org.aesh.command.impl.parser.CommandLineCompletionParser getCompletionParser()
        Specified by:
        getCompletionParser in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • getAllNames

        public List<String> getAllNames()
        Specified by:
        getAllNames in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • getChildParser

        public org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> getChildParser​(String name)
        Specified by:
        getChildParser in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • addChildParser

        public void addChildParser​(org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> childParser)
                            throws org.aesh.command.parser.CommandLineParserException
        Specified by:
        addChildParser in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
        Throws:
        org.aesh.command.parser.CommandLineParserException
      • getAllChildParsers

        public List<org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>> getAllChildParsers()
        Specified by:
        getAllChildParsers in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • getCommandPopulator

        public org.aesh.command.populator.CommandPopulator getCommandPopulator()
        Specified by:
        getCommandPopulator in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • printHelp

        public String printHelp()
        Specified by:
        printHelp in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • parse

        public void parse​(String line)
        Specified by:
        parse in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • parse

        public void parse​(String line,
                          org.aesh.command.impl.parser.CommandLineParser.Mode mode)
        Specified by:
        parse in interface org.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:
        parse in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • clear

        public void clear()
        Specified by:
        clear in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • isGroupCommand

        public boolean isGroupCommand()
        Specified by:
        isGroupCommand in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • setChild

        public void setChild​(boolean b)
        Specified by:
        setChild in interface org.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:
        populateObject in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
        Throws:
        org.aesh.command.parser.CommandLineParserException
        org.aesh.command.validator.OptionValidatorException
      • lastParsedOption

        public org.aesh.command.impl.internal.ProcessedOption lastParsedOption()
        Specified by:
        lastParsedOption in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • parsedCommand

        public org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation> parsedCommand()
        Specified by:
        parsedCommand in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • complete

        public void complete​(org.aesh.complete.AeshCompleteOperation completeOperation,
                             org.aesh.command.invocation.InvocationProviders invocationProviders)
        Specified by:
        complete in interface org.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:
        complete in interface org.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:
        doPopulate in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
        Throws:
        org.aesh.command.parser.CommandLineParserException
        org.aesh.command.validator.OptionValidatorException
      • updateAnsiMode

        public void updateAnsiMode​(boolean mode)
        Specified by:
        updateAnsiMode in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>
      • getFormattedCommand

        public String getFormattedCommand​(int offset,
                                          int descriptionStart)
        Specified by:
        getFormattedCommand in interface org.aesh.command.impl.parser.CommandLineParser<CLICommandInvocation>