jline.console.completer
Class AggregateCompleter
java.lang.Object
jline.console.completer.AggregateCompleter
- All Implemented Interfaces:
- Completer
public class AggregateCompleter
- extends Object
- implements Completer
Completer which contains multiple completers and aggregates them together.
- Since:
- 2.3
- Author:
- Jason Dillon
AggregateCompleter
public AggregateCompleter()
AggregateCompleter
public AggregateCompleter(Collection<Completer> completers)
AggregateCompleter
public AggregateCompleter(Completer... completers)
getCompleters
public Collection<Completer> getCompleters()
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
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008-2011 Sonatype. All Rights Reserved.