The completion object
| Constructor and description |
|---|
Completion
(java.lang.Object delegate) |
| Type | Name and description |
|---|---|
void |
complete(java.util.List<java.lang.String> candidates)End the completion with a list of candidates, these candidates will be displayed by the shell on the console. |
void |
complete(java.lang.String value, boolean terminal)End the completion with a value that will be inserted to complete the line. |
java.lang.Object |
getDelegate() |
java.util.List<CliToken> |
lineTokens()@return the current line being completed as preparsed tokens |
java.lang.String |
rawLine()@return the current line being completed in raw format, i.e without any char escape performed |
Session |
session()@return the shell current session, useful for accessing data like the current path for file completion, etc... |
Vertx |
vertx()@return the current Vert.x instance |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
End the completion with a list of candidates, these candidates will be displayed by the shell on the console.
candidates - the candidatesEnd the completion with a value that will be inserted to complete the line.
value - the value to complete withterminal - true if the value is terminal, i.e can be further completed