Uses of Interface
org.jline.reader.LineReader
-
Packages that use LineReader Package Description org.jline.builtins JLine Builtins provides a collection of utility classes and implementations for common terminal functionality.org.jline.console JLine Console package provides a framework for building interactive command-line applications.org.jline.console.impl org.jline.reader JLine 3 Reader Package - Core components for building interactive command-line interfaces.org.jline.reader.impl JLine 3 Reader Implementation Package.org.jline.reader.impl.completer JLine 3 Completer Implementations.org.jline.reader.impl.history JLine 3 History Implementation Package.org.jline.widget JLine Widget package provides a framework for creating and managing widgets for JLine's LineReader. -
-
Uses of LineReader in org.jline.builtins
Methods in org.jline.builtins with parameters of type LineReader Modifier and Type Method Description static voidCommands. complete(LineReader reader, java.io.PrintStream out, java.io.PrintStream err, java.util.Map<java.lang.String,java.util.List<Completers.CompletionData>> completions, java.lang.String[] argv)Edits command-specific tab completions.voidCompleters.AnyCompleter. complete(LineReader reader, ParsedLine commandLine, java.util.List<Candidate> candidates)Completes the current word by returning it as a candidate.voidCompleters.Completer. complete(LineReader reader, ParsedLine line, java.util.List<Candidate> candidates)Completes the current input line.voidCompleters.FileNameCompleter. complete(LineReader reader, ParsedLine commandLine, java.util.List<Candidate> candidates)voidCompleters.OptionCompleter. complete(LineReader reader, ParsedLine commandLine, java.util.List<Candidate> candidates)Completes command options and arguments.voidCompleters.RegexCompleter. complete(LineReader reader, ParsedLine line, java.util.List<Candidate> candidates)Completes the current input line using the regex pattern.voidCompleters.TreeCompleter. complete(LineReader reader, ParsedLine line, java.util.List<Candidate> candidates)Completes the current input line using the tree structure.protected voidCompleters.Completer. completeCommandArguments(LineReader reader, ParsedLine line, java.util.List<Candidate> candidates, java.util.List<Completers.CompletionData> completions)Completes command arguments based on completion data.protected voidCompleters.OptDesc. completeOption(LineReader reader, ParsedLine commandLine, java.util.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, java.util.List<Candidate> candidates, java.lang.String curBuf, java.lang.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, java.io.InputStream is)Configures a LineReader from an inputrc file provided as an InputStream.static voidInputRC. configure(LineReader reader, java.io.Reader r)Configures a LineReader from an inputrc file provided as a Reader.static voidInputRC. configure(LineReader reader, java.net.URL url)Configures a LineReader from an inputrc file at the specified URL.static voidInputRC. configure(LineReader lineReader, java.nio.file.Path path)Configures a LineReader from an inputrc file located at the specified file path, if that's an existing readable file.java.lang.ObjectCompleters.CompletionEnvironment. evaluate(LineReader reader, ParsedLine line, java.lang.String func)Evaluates a function in the current environment context.static voidCommands. highlighter(LineReader lineReader, Terminal terminal, java.io.PrintStream out, java.io.PrintStream err, java.lang.String[] argv, ConfigurationPath configPath)Manages syntax highlighting themes.static voidCommands. history(LineReader reader, java.io.PrintStream out, java.io.PrintStream err, java.nio.file.Path currentDir, java.lang.String[] argv)Displays or manipulates the command history.static voidCommands. keymap(LineReader reader, java.io.PrintStream out, java.io.PrintStream err, java.lang.String[] argv)Manipulates line reader keymaps.static voidCommands. setopt(LineReader reader, java.io.PrintStream out, java.io.PrintStream err, java.lang.String[] argv)Sets line reader options.static voidCommands. setvar(LineReader lineReader, java.io.PrintStream out, java.io.PrintStream err, java.lang.String[] argv)Sets or displays line reader variables.protected voidCompleters.Completer. tryCompleteArguments(LineReader reader, ParsedLine line, java.util.List<Candidate> candidates)Attempts to complete command arguments.static voidCommands. unsetopt(LineReader reader, java.io.PrintStream out, java.io.PrintStream err, java.lang.String[] argv)Unsets line reader options.static voidCommands. widget(LineReader reader, java.io.PrintStream out, java.io.PrintStream err, java.util.function.Function<java.lang.String,Widget> widgetCreator, java.lang.String[] argv)Manipulates line reader widgets. -
Uses of LineReader in org.jline.console
Methods in org.jline.console with parameters of type LineReader Modifier and Type Method Description voidConsoleEngine. setLineReader(LineReader reader)Sets the LineReader instance to be used by this console engine. -
Uses of LineReader in org.jline.console.impl
Methods in org.jline.console.impl with parameters of type LineReader Modifier and Type Method Description voidConsoleEngineImpl.VariableReferenceCompleter. complete(LineReader reader, ParsedLine commandLine, java.util.List<Candidate> candidates)protected AttributedStringSystemHighlighter. doFileArgsHighlight(LineReader reader, java.lang.String buffer, java.util.List<java.lang.String> words, SystemHighlighter.FileHighlightCommand fhc)protected AttributedStringSystemHighlighter. doFileOptsHighlight(LineReader reader, java.lang.String buffer, java.util.List<java.lang.String> words, SystemHighlighter.FileHighlightCommand fhc)AttributedStringSystemHighlighter. highlight(LineReader reader, java.lang.String buffer)voidSystemHighlighter. refresh(LineReader lineReader)voidBuiltins. setLineReader(LineReader reader)voidConsoleEngineImpl. setLineReader(LineReader reader)voidSimpleSystemRegistryImpl. setLineReader(LineReader lineReader)protected AttributedStringSystemHighlighter. systemHighlight(LineReader reader, java.lang.String buffer) -
Uses of LineReader in org.jline.reader
Methods in org.jline.reader that return LineReader Modifier and Type Method Description LineReaderLineReaderBuilder. build()Builds and returns a LineReader instance with the configured options.LineReaderLineReader. option(LineReader.Option option, boolean value)Sets an option in the LineReader and returns the LineReader for method chaining.LineReaderLineReader. variable(java.lang.String name, java.lang.Object value)Sets a variable in the LineReader and returns the LineReader for method chaining.Methods in org.jline.reader with parameters of type LineReader Modifier and Type Method Description voidHistory. attach(LineReader reader)Initialize the history for the given reader.voidCompleter. complete(LineReader reader, ParsedLine line, java.util.List<Candidate> candidates)Populates candidates with a list of possible completions for the command line.AttributedStringHighlighter. highlight(LineReader reader, java.lang.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 Constructor Description PrintAboveWriter(LineReader reader) -
Uses of LineReader in org.jline.reader.impl
Classes in org.jline.reader.impl that implement LineReader Modifier and Type Class Description classLineReaderImplThe default implementation of theLineReaderinterface.Methods in org.jline.reader.impl that return LineReader Modifier and Type Method Description LineReaderLineReaderImpl. option(LineReader.Option option, boolean value)LineReaderLineReaderImpl. variable(java.lang.String name, java.lang.Object value)Methods in org.jline.reader.impl with parameters of type LineReader Modifier and Type Method Description protected voidDefaultHighlighter. commandStyle(LineReader reader, AttributedStringBuilder sb, boolean enable)static voidInputRC. configure(LineReader reader, java.io.InputStream is)Configures a LineReader from an inputrc file.static voidInputRC. configure(LineReader reader, java.io.Reader r)Configures a LineReader from an inputrc file.static voidInputRC. configure(LineReader reader, java.net.URL url)Configures a LineReader from an inputrc file at the specified URL.static booleanReaderUtils. getBoolean(LineReader reader, java.lang.String name, boolean def)Gets a boolean variable from a LineReader with a default value.static intReaderUtils. getInt(LineReader reader, java.lang.String name, int def)Gets an integer variable from a LineReader with a default value.static longReaderUtils. getLong(LineReader reader, java.lang.String name, long def)Gets a long variable from a LineReader with a default value.static java.lang.StringReaderUtils. getString(LineReader reader, java.lang.String name, java.lang.String def)Gets a string variable from a LineReader with a default value.AttributedStringDefaultHighlighter. highlight(LineReader reader, java.lang.String buffer)static booleanReaderUtils. isSet(LineReader reader, LineReader.Option option)Checks if a LineReader option is set. -
Uses of LineReader in org.jline.reader.impl.completer
Methods in org.jline.reader.impl.completer with parameters of type LineReader Modifier and Type Method Description voidAggregateCompleter. complete(LineReader reader, ParsedLine line, java.util.List<Candidate> candidates)Perform a completion operation across all aggregated completers.voidArgumentCompleter. complete(LineReader reader, ParsedLine line, java.util.List<Candidate> candidates)voidFileNameCompleter. complete(LineReader reader, ParsedLine commandLine, java.util.List<Candidate> candidates)Deprecated.voidNullCompleter. complete(LineReader reader, ParsedLine line, java.util.List<Candidate> candidates)voidStringsCompleter. complete(LineReader reader, ParsedLine commandLine, java.util.List<Candidate> candidates)voidSystemCompleter. complete(LineReader reader, ParsedLine commandLine, java.util.List<Candidate> candidates) -
Uses of LineReader in org.jline.reader.impl.history
Methods in org.jline.reader.impl.history with parameters of type LineReader Modifier and Type Method Description voidDefaultHistory. attach(LineReader reader)Attaches this history to a LineReader.Constructors in org.jline.reader.impl.history with parameters of type LineReader Constructor Description DefaultHistory(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 LineReader Modifier and Type Field Description protected LineReaderWidgets. readerThe LineReader instance associated with these widgetsConstructors in org.jline.widget with parameters of type LineReader Constructor Description AutopairWidgets(LineReader reader)AutopairWidgets(LineReader reader, boolean addCurlyBrackets)AutosuggestionWidgets(LineReader reader)TailTipWidgets(LineReader reader, java.util.function.Function<CmdLine,CmdDesc> descFun, int descriptionSize, TailTipWidgets.TipType tipType)Creates tailtip widgets used in command line suggestions.TailTipWidgets(LineReader reader, java.util.Map<java.lang.String,CmdDesc> tailTips)Creates tailtip widgets used in command line suggestions.TailTipWidgets(LineReader reader, java.util.Map<java.lang.String,CmdDesc> tailTips, int descriptionSize)Creates tailtip widgets used in command line suggestions with a status bar.TailTipWidgets(LineReader reader, java.util.Map<java.lang.String,CmdDesc> tailTips, int descriptionSize, TailTipWidgets.TipType tipType)Creates tailtip widgets used in command line suggestions with a status bar and specific tip type.TailTipWidgets(LineReader reader, java.util.Map<java.lang.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.
-