Class CandidateListCompletionHandler
java.lang.Object
jline.CandidateListCompletionHandler
- All Implemented Interfaces:
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.
- handle quotes and escaped quotes
- enable automatic escaping of whitespace
- Author:
- Marc Prud'hommeaux
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancomplete(ConsoleReader reader, List candidates, int pos) static final voidprintCandidates(ConsoleReader reader, Collection candidates, boolean eagerNewlines) Print out the candidates.voidsetAlwaysIncludeNewline(boolean eagerNewlines) static voidsetBuffer(ConsoleReader reader, String value, int offset)
-
Constructor Details
-
CandidateListCompletionHandler
public CandidateListCompletionHandler()
-
-
Method Details
-
setAlwaysIncludeNewline
-
complete
- Specified by:
completein interfaceCompletionHandler- Throws:
IOException
-
setBuffer
- Throws:
IOException
-
printCandidates
public static final void printCandidates(ConsoleReader reader, Collection candidates, boolean eagerNewlines) throws IOException Print out the candidates. If the size of the candidates is greated than the, they prompt with aq warning.invalid reference
getAutoprintThreshhold- Parameters:
candidates- the list of candidates to print- Throws:
IOException
-