Package sqlline

Class AbstractCommandHandler

    • Constructor Detail

      • AbstractCommandHandler

        public AbstractCommandHandler​(SqlLine sqlLine,
                                      String[] names,
                                      String helpText,
                                      List<org.jline.reader.Completer> completers)
    • Method Detail

      • matches

        public String matches​(String line)
        Description copied from interface: CommandHandler
        Checks to see if the specified string can be dispatched to this command.
        Specified by:
        matches in interface CommandHandler
        Parameters:
        line - The command line to check
        Returns:
        the command string that matches, or null if it no match
      • getParameterCompleters

        public List<org.jline.reader.Completer> getParameterCompleters()
        Description copied from interface: CommandHandler
        Returns the completers that can handle parameters.
        Specified by:
        getParameterCompleters in interface CommandHandler
        Returns:
        Completers that can handle parameters