jline
public class CandidateListCompletionHandler extends Object implements CompletionHandler
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.
TODO:Method Summary | |
---|---|
boolean | complete(ConsoleReader reader, List candidates, int pos) |
static void | printCandidates(ConsoleReader reader, Collection candidates, boolean eagerNewlines)
Print out the candidates. |
void | setAlwaysIncludeNewline(boolean eagerNewlines) |
static void | setBuffer(ConsoleReader reader, String value, int offset) |
Parameters: candidates the list of candidates to print