Annotation Interface AutoComplete


@Target({METHOD,TYPE}) @Retention(RUNTIME) public @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 with AutoCompleter.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

    Required Elements
    Modifier and Type
    Required Element
    Description
    The tab completion value, by order.
  • Element Details

    • value

      String value
      The tab completion value, by order.
      Returns:
      The tab completion. Check the class documentation for more information.