Package revxrsal.commands.annotation
Annotation Interface AutoComplete
Adds tab completion for the command.
Each value in value()
should be separated with a space, and can either be
contextual or static:
-
If it is contextual, it should be prefixed with
@
and registered withAutoCompleter.registerSuggestion(String, SuggestionProvider)
. -
If it is static, you can either write up the values right away and separate them
with
|
, such as 1|2|3 which will return 1, 2 and 3 when tab is requested. -
It is possible to reference the parameter's default auto-completer by using
*
, in which the library would automatically use other suggestion factories to auto-complete it.
-
Required Element Summary
-
Element Details
-
value
String valueThe tab completion value, by order.- Returns:
- The tab completion. Check the class documentation for more information.
-