Package jline.console.completer
Class AggregateCompleter
java.lang.Object
jline.console.completer.AggregateCompleter
- All Implemented Interfaces:
Completer
Completer which contains multiple completers and aggregates them together.
- Since:
- 2.3
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAggregateCompleter
(Collection<Completer> completers) Construct an AggregateCompleter with the given collection of completers.AggregateCompleter
(Completer... completers) Construct an AggregateCompleter with the given completers. -
Method Summary
Modifier and TypeMethodDescriptionint
complete
(String buffer, int cursor, List<CharSequence> candidates) Perform a completion operation across all aggregated completers.Retrieve the collection of completers currently being aggregated.toString()
-
Field Details
-
completers
-
-
Constructor Details
-
AggregateCompleter
public AggregateCompleter() -
AggregateCompleter
Construct an AggregateCompleter with the given collection of completers. The completers will be used in the iteration order of the collection.- Parameters:
completers
- the collection of 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. -
toString
-