jline.console.completer
Class NullCompleter
java.lang.Object
jline.console.completer.NullCompleter
- All Implemented Interfaces:
- Completer
public final class NullCompleter
- extends Object
- implements Completer
Null completer.
- Since:
- 2.3
- Author:
- Marc Prud'hommeaux, Jason Dillon
Method Summary |
int |
complete(String buffer,
int cursor,
List<CharSequence> candidates)
Populates candidates with a list of possible completions for the buffer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final NullCompleter INSTANCE
NullCompleter
public NullCompleter()
complete
public int complete(String buffer,
int cursor,
List<CharSequence> candidates)
- Description copied from interface:
Completer
- Populates candidates with a list of possible completions for the buffer.
The candidates list will not be sorted before being displayed to the user: thus, the
complete method should sort the
List
before returning.
- Specified by:
complete
in interface Completer
- Parameters:
buffer
- The buffercursor
- The current position of the cursor in the buffercandidates
- The List
of candidates to populate
- Returns:
- The index of the buffer for which the completion will be relative
Copyright © 2008-2011 Sonatype. All Rights Reserved.