Package org.jline.reader.impl.completer
Class AggregateCompleter
java.lang.Object
org.jline.reader.impl.completer.AggregateCompleter
- All Implemented Interfaces:
Completer
Completer which contains multiple completers and aggregates them together.
- Since:
- 2.3
- Author:
- Jason Dillon
-
Constructor Summary
ConstructorDescriptionAggregateCompleter
(Collection<Completer> completers) Construct an AggregateCompleter with the given completers.AggregateCompleter
(Completer... completers) Construct an AggregateCompleter with the given completers. -
Method Summary
Modifier and TypeMethodDescriptionvoid
complete
(LineReader reader, ParsedLine line, List<Candidate> candidates) Perform a completion operation across all aggregated completers.Retrieve the collection of completers currently being aggregated.toString()
-
Constructor Details
-
AggregateCompleter
Construct an AggregateCompleter with the given completers. The completers will be used in the order given.- Parameters:
completers
- the completers
-
AggregateCompleter
Construct an AggregateCompleter with the given completers. The completers will be used in the order given.- Parameters:
completers
- the completers
-
-
Method Details
-
getCompleters
Retrieve the collection of completers currently being aggregated.- Returns:
- the aggregated completers
-
complete
Perform a completion operation across all aggregated completers. The effect is similar to the following code:completers.forEach(c -> c.complete(reader, line, candidates));
-
toString
-