程序包 jline
类 CandidateListCompletionHandler
java.lang.Object
jline.CandidateListCompletionHandler
- 所有已实现的接口:
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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
complete
(ConsoleReader reader, List candidates, int pos) static final 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)
-
构造器详细资料
-
CandidateListCompletionHandler
public CandidateListCompletionHandler()
-
-
方法详细资料
-
setAlwaysIncludeNewline
public void setAlwaysIncludeNewline(boolean eagerNewlines) -
complete
- 指定者:
complete
在接口中CompletionHandler
- 抛出:
IOException
-
setBuffer
- 抛出:
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 thegetAutoprintThreshhold
, they prompt with aq warning.- 参数:
candidates
- the list of candidates to print- 抛出:
IOException
-