Package com.illumon.lang.completion
Class DelegatingCompletionHandler
java.lang.Object
com.illumon.lang.completion.DelegatingCompletionHandler
- All Implemented Interfaces:
CompletionHandler
Allows you to join multiple completion handlers together, and coalesce the final results.
In the future, we will better log which handlers provided which completions.
We may also simply call the different handlers in a different manner,
when the v2 implementation api changes to better support the ChunkerDocument model
(and pushing results to client directly), rendering this class obsolete.
NOTE: This class is not currently in use, since the coalesced results
wound up causing ugly duplications with different whitespace.
We will delete it after merging, to have it in git history,
in case we decide to revive it later.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DelegatingCompletionHandler
-
-
Method Details
-
complete
public CompletableFuture<? extends Collection<CompletionFragment>> complete(String command, int offset) - Specified by:
completein interfaceCompletionHandler
-