Package sqlline

Interface CommandHandler

    • Method Detail

      • getName

        String getName()
        Returns:
        the name of the command
      • getNames

        List<String> getNames()
        Returns:
        all the possible names of this command.
      • getHelpText

        String getHelpText()
        Returns:
        the short help description for this command.
      • matches

        String matches​(String line)
        Checks to see if the specified string can be dispatched to this command.
        Parameters:
        line - The command line to check
        Returns:
        the command string that matches, or null if it no match
      • execute

        void execute​(String line,
                     DispatchCallback dispatchCallback)
        Executes the specified command.
        Parameters:
        line - The full command line to execute
        dispatchCallback - the callback to check or interrupt the action
      • getParameterCompleters

        List<org.jline.reader.Completer> getParameterCompleters()
        Returns the completers that can handle parameters.
        Returns:
        Completers that can handle parameters