Uses of Interface
org.jline.reader.LineReader
Packages that use LineReader
Package
Description
JLine Builtins provides a collection of utility classes and implementations for common terminal
functionality.
JLine Console package provides a framework for building interactive command-line applications.
JLine 3 Reader Package - Core components for building interactive command-line interfaces.
JLine 3 Reader Implementation Package.
JLine 3 Completer Implementations.
JLine 3 History Implementation Package.
JLine Widget package provides a framework for creating and managing widgets for JLine's LineReader.
-
Uses of LineReader in org.jline.builtins
Fields in org.jline.builtins with type parameters of type LineReaderModifier and TypeFieldDescriptionprivate final ThreadLocal<LineReader> Completers.RegexCompleter.readerThread-local storage for the current line readerMethods in org.jline.builtins with parameters of type LineReaderModifier and TypeMethodDescriptionvoidCommands.ReExecute.addCommandInBuffer(LineReader reader, String command) static voidCommands.complete(LineReader reader, PrintStream out, PrintStream err, Map<String, List<Completers.CompletionData>> completions, String[] argv) Edits command-specific tab completions.voidCompleters.AnyCompleter.complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates) Completes the current word by returning it as a candidate.voidCompleters.Completer.complete(LineReader reader, ParsedLine line, List<Candidate> candidates) Completes the current input line.voidCompleters.FileNameCompleter.complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates) voidCompleters.OptionCompleter.complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates) Completes command options and arguments.voidCompleters.RegexCompleter.complete(LineReader reader, ParsedLine line, List<Candidate> candidates) Completes the current input line using the regex pattern.voidCompleters.TreeCompleter.complete(LineReader reader, ParsedLine line, List<Candidate> candidates) Completes the current input line using the tree structure.protected voidCompleters.Completer.completeCommandArguments(LineReader reader, ParsedLine line, List<Candidate> candidates, List<Completers.CompletionData> completions) Completes command arguments based on completion data.protected voidCompleters.OptDesc.completeOption(LineReader reader, ParsedLine commandLine, List<Candidate> candidates, boolean longOpt) Completes an option based on whether it's a short or long option.protected booleanCompleters.OptDesc.completeValue(LineReader reader, ParsedLine commandLine, List<Candidate> candidates, String curBuf, String partialValue) Completes the value for an option.static voidInputRC.configure(LineReader lineReader) Configures a LineReader using the default inputrc files.static voidInputRC.configure(LineReader reader, InputStream is) Configures a LineReader from an inputrc file provided as an InputStream.static voidInputRC.configure(LineReader reader, Reader r) Configures a LineReader from an inputrc file provided as a Reader.static voidInputRC.configure(LineReader reader, URL url) Configures a LineReader from an inputrc file at the specified URL.static voidInputRC.configure(LineReader lineReader, Path path) Configures a LineReader from an inputrc file located at the specified file path, if that's an existing readable file.private static voidCommands.doSetOpts(LineReader reader, PrintStream out, PrintStream err, List<String> options, boolean match, boolean set) Helper method to set or unset line reader options.voidCommands.ReExecute.editCommandsAndClose(LineReader reader) Completers.CompletionEnvironment.evaluate(LineReader reader, ParsedLine line, String func) Evaluates a function in the current environment context.static voidCommands.highlighter(LineReader lineReader, Terminal terminal, PrintStream out, PrintStream err, String[] argv, ConfigurationPath configPath) Manages syntax highlighting themes.static voidCommands.history(LineReader reader, PrintStream out, PrintStream err, Path currentDir, String[] argv) Displays or manipulates the command history.static voidCommands.keymap(LineReader reader, PrintStream out, PrintStream err, String[] argv) Manipulates line reader keymaps.static voidCommands.setopt(LineReader reader, PrintStream out, PrintStream err, String[] argv) Sets line reader options.static voidCommands.setvar(LineReader lineReader, PrintStream out, PrintStream err, String[] argv) Sets or displays line reader variables.protected voidCompleters.Completer.tryCompleteArguments(LineReader reader, ParsedLine line, List<Candidate> candidates) Attempts to complete command arguments.static voidCommands.unsetopt(LineReader reader, PrintStream out, PrintStream err, String[] argv) Unsets line reader options.static voidCommands.widget(LineReader reader, PrintStream out, PrintStream err, Function<String, Widget> widgetCreator, String[] argv) Manipulates line reader widgets. -
Uses of LineReader in org.jline.console
Methods in org.jline.console with parameters of type LineReaderModifier and TypeMethodDescriptionvoidConsoleEngine.setLineReader(LineReader reader) Sets the LineReader instance to be used by this console engine. -
Uses of LineReader in org.jline.console.impl
Fields in org.jline.console.impl declared as LineReaderModifier and TypeFieldDescriptionprivate LineReaderSimpleSystemRegistryImpl.lineReaderprivate LineReaderBuiltins.readerprivate LineReaderConsoleEngineImpl.readerMethods in org.jline.console.impl with parameters of type LineReaderModifier and TypeMethodDescriptionvoidConsoleEngineImpl.AliasValueCompleter.complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates) voidConsoleEngineImpl.VariableReferenceCompleter.complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates) voidSystemRegistryImpl.PipelineCompleter.complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates) private booleanSystemHighlighter.doDefaultHighlight(LineReader reader) protected AttributedStringSystemHighlighter.doFileArgsHighlight(LineReader reader, String buffer, List<String> words, SystemHighlighter.FileHighlightCommand fhc) protected AttributedStringSystemHighlighter.doFileOptsHighlight(LineReader reader, String buffer, List<String> words, SystemHighlighter.FileHighlightCommand fhc) SystemHighlighter.highlight(LineReader reader, String buffer) private voidSystemHighlighter.highlightFileArg(LineReader reader, String arg, AttributedStringBuilder asb) voidSystemHighlighter.refresh(LineReader lineReader) voidBuiltins.setLineReader(LineReader reader) voidConsoleEngineImpl.setLineReader(LineReader reader) voidSimpleSystemRegistryImpl.setLineReader(LineReader lineReader) protected AttributedStringSystemHighlighter.systemHighlight(LineReader reader, String buffer) -
Uses of LineReader in org.jline.consoleui.prompt
Fields in org.jline.consoleui.prompt declared as LineReaderModifier and TypeFieldDescriptionprivate final LineReaderAbstractPrompt.InputValuePrompt.readerprotected final LineReaderConsolePrompt.readerMethods in org.jline.consoleui.prompt with parameters of type LineReaderModifier and TypeMethodDescriptionAbstractPrompt.InputValuePrompt.getPrompt(LineReader reader, Terminal terminal, Display display, List<AttributedString> header, AttributedString message, InputValue inputValue, ConsolePrompt.UiConfig cfg) Constructors in org.jline.consoleui.prompt with parameters of type LineReaderModifierConstructorDescriptionConsolePrompt(LineReader reader, Terminal terminal, ConsolePrompt.UiConfig config) privateInputValuePrompt(LineReader reader, Terminal terminal, Display display, List<AttributedString> header, AttributedString message, InputValue inputValue, ConsolePrompt.UiConfig cfg) -
Uses of LineReader in org.jline.reader
Fields in org.jline.reader declared as LineReaderMethods in org.jline.reader that return LineReaderModifier and TypeMethodDescriptionLineReaderBuilder.build()Builds and returns a LineReader instance with the configured options.LineReader.option(LineReader.Option option, boolean value) Sets an option in the LineReader and returns the LineReader for method chaining.Sets a variable in the LineReader and returns the LineReader for method chaining.Methods in org.jline.reader with parameters of type LineReaderModifier and TypeMethodDescriptionvoidHistory.attach(LineReader reader) Initialize the history for the given reader.voidCompleter.complete(LineReader reader, ParsedLine line, List<Candidate> candidates) Populates candidates with a list of possible completions for the command line.Highlighter.highlight(LineReader reader, String buffer) Highlights the provided text buffer with appropriate styling.default voidHighlighter.refresh(LineReader reader) Refreshes the highlighter's configuration.Constructors in org.jline.reader with parameters of type LineReader -
Uses of LineReader in org.jline.reader.impl
Classes in org.jline.reader.impl that implement LineReaderFields in org.jline.reader.impl declared as LineReaderMethods in org.jline.reader.impl that return LineReaderMethods in org.jline.reader.impl with parameters of type LineReaderModifier and TypeMethodDescriptionprotected voidDefaultHighlighter.commandStyle(LineReader reader, AttributedStringBuilder sb, boolean enable) static voidInputRC.configure(LineReader reader, InputStream is) Configures a LineReader from an inputrc file.static voidInputRC.configure(LineReader reader, Reader r) Configures a LineReader from an inputrc file.static voidInputRC.configure(LineReader reader, URL url) Configures a LineReader from an inputrc file at the specified URL.static booleanReaderUtils.getBoolean(LineReader reader, String name, boolean def) Gets a boolean variable from a LineReader with a default value.static intReaderUtils.getInt(LineReader reader, String name, int def) Gets an integer variable from a LineReader with a default value.static longReaderUtils.getLong(LineReader reader, String name, long def) Gets a long variable from a LineReader with a default value.static StringReaderUtils.getString(LineReader reader, String name, String def) Gets a string variable from a LineReader with a default value.DefaultHighlighter.highlight(LineReader reader, String buffer) static booleanReaderUtils.isSet(LineReader reader, LineReader.Option option) Checks if a LineReader option is set.(package private) static voidInputRC.setVar(LineReader reader, String key, String val) Sets a variable in the LineReader.Constructors in org.jline.reader.impl with parameters of type LineReader -
Uses of LineReader in org.jline.reader.impl.completer
Methods in org.jline.reader.impl.completer with parameters of type LineReaderModifier and TypeMethodDescriptionvoidAggregateCompleter.complete(LineReader reader, ParsedLine line, List<Candidate> candidates) Perform a completion operation across all aggregated completers.voidArgumentCompleter.complete(LineReader reader, ParsedLine line, List<Candidate> candidates) voidFileNameCompleter.complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates) Deprecated.voidNullCompleter.complete(LineReader reader, ParsedLine line, List<Candidate> candidates) voidStringsCompleter.complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates) voidSystemCompleter.complete(LineReader reader, ParsedLine commandLine, List<Candidate> candidates) -
Uses of LineReader in org.jline.reader.impl.history
Fields in org.jline.reader.impl.history declared as LineReaderMethods in org.jline.reader.impl.history with parameters of type LineReaderModifier and TypeMethodDescriptionvoidDefaultHistory.attach(LineReader reader) Attaches this history to a LineReader.Constructors in org.jline.reader.impl.history with parameters of type LineReaderModifierConstructorDescriptionDefaultHistory(LineReader reader) Creates a new DefaultHistory instance and attaches it to the specified LineReader. -
Uses of LineReader in org.jline.widget
Fields in org.jline.widget declared as LineReaderModifier and TypeFieldDescriptionprotected final LineReaderWidgets.readerThe LineReader instance associated with these widgetsConstructors in org.jline.widget with parameters of type LineReaderModifierConstructorDescriptionAutopairWidgets(LineReader reader) AutopairWidgets(LineReader reader, boolean addCurlyBrackets) AutosuggestionWidgets(LineReader reader) TailTipWidgets(LineReader reader, Function<CmdLine, CmdDesc> descFun, int descriptionSize, TailTipWidgets.TipType tipType) Creates tailtip widgets used in command line suggestions.TailTipWidgets(LineReader reader, Map<String, CmdDesc> tailTips) Creates tailtip widgets used in command line suggestions.TailTipWidgets(LineReader reader, Map<String, CmdDesc> tailTips, int descriptionSize) Creates tailtip widgets used in command line suggestions with a status bar.TailTipWidgets(LineReader reader, Map<String, CmdDesc> tailTips, int descriptionSize, TailTipWidgets.TipType tipType) Creates tailtip widgets used in command line suggestions with a status bar and specific tip type.privateTailTipWidgets(LineReader reader, Map<String, CmdDesc> tailTips, int descriptionSize, TailTipWidgets.TipType tipType, Function<CmdLine, CmdDesc> descFun) TailTipWidgets(LineReader reader, Map<String, CmdDesc> tailTips, TailTipWidgets.TipType tipType) Creates tailtip widgets used in command line suggestions with a specific tip type.Widgets(LineReader reader) Creates a new Widgets instance for the specified LineReader.