- java.lang.Object
-
- org.jline.prompt.PrompterFactory
-
public final class PrompterFactory extends java.lang.ObjectFactory for creating Prompter instances.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Promptercreate(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 Promptercreate(org.jline.terminal.Terminal terminal)Create a new Prompter instance with the given terminal.static Promptercreate(org.jline.terminal.Terminal terminal, PrompterConfig config)Create a new Prompter instance with the given terminal and configuration.
-
-
-
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 useconfig- 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 useterminal- the terminal to useconfig- the configuration to use- Returns:
- a new Prompter instance
-
-