public class

CandidateListCompletionHandler

extends Object
implements CompletionHandler
java.lang.Object
   ↳ jline.console.completer.CandidateListCompletionHandler

Class Overview

A CompletionHandler that deals with multiple distinct completions by outputting the complete list of possibilities to the console. This mimics the behavior of the readline library.

Summary

Public Constructors
CandidateListCompletionHandler()
Public Methods
boolean complete(ConsoleReader reader, List<CharSequence> candidates, int pos)
static void printCandidates(ConsoleReader reader, Collection<CharSequence> candidates)
Print out the candidates.
static void setBuffer(ConsoleReader reader, CharSequence value, int offset)
[Expand]
Inherited Methods
From class java.lang.Object
From interface jline.console.completer.CompletionHandler

Public Constructors

public CandidateListCompletionHandler ()

Public Methods

public boolean complete (ConsoleReader reader, List<CharSequence> candidates, int pos)

Throws
IOException

public static void printCandidates (ConsoleReader reader, Collection<CharSequence> candidates)

Print out the candidates. If the size of the candidates is greater than the getAutoprintThreshold(), they prompt with a warning.

Parameters
candidates the list of candidates to print
Throws
IOException

public static void setBuffer (ConsoleReader reader, CharSequence value, int offset)

Throws
IOException