Class PrompterFactory


  • public final class PrompterFactory
    extends java.lang.Object
    Factory for creating Prompter instances.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Prompter create​(org.jline.reader.LineReader reader, org.jline.terminal.Terminal terminal, PrompterConfig config)
      Create a new Prompter instance with the given line reader, terminal, and configuration.
      static Prompter create​(org.jline.terminal.Terminal terminal)
      Create a new Prompter instance with the given terminal.
      static Prompter create​(org.jline.terminal.Terminal terminal, PrompterConfig config)
      Create a new Prompter instance with the given terminal and configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static Prompter create​(org.jline.terminal.Terminal terminal)
        Create a new Prompter instance with the given terminal.
        Parameters:
        terminal - the terminal to use
        Returns:
        a new Prompter instance
      • create

        public static Prompter create​(org.jline.terminal.Terminal terminal,
                                      PrompterConfig config)
        Create a new Prompter instance with the given terminal and configuration.
        Parameters:
        terminal - the terminal to use
        config - the configuration to use
        Returns:
        a new Prompter instance
      • create

        public static Prompter create​(org.jline.reader.LineReader reader,
                                      org.jline.terminal.Terminal terminal,
                                      PrompterConfig config)
        Create a new Prompter instance with the given line reader, terminal, and configuration.
        Parameters:
        reader - the line reader to use
        terminal - the terminal to use
        config - the configuration to use
        Returns:
        a new Prompter instance