Interface InputLine.TabCompletion

  • Enclosing class:
    InputLine
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface InputLine.TabCompletion
    Tab completion interface.
    • Method Detail

      • complete

        String complete​(String before,
                        LinePrinter errorPrinter)
        Try to complete the given string.

        The function should only print to the line printer if there is no selected completion.

        Parameters:
        before - The string to be completed. What is before the carriage.
        errorPrinter - Print errors or alternatives to this line printer.
        Returns:
        the completed string, or null if no completion.