Annotation Interface CmdParam


@Retention(RUNTIME) @Target(PARAMETER) public @interface CmdParam
Command parameter annotation.

指令参数注解。

See Also:
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Returns:
      parameter name
      参数名
    • suggest

      String suggest
      Returns:
      parameter suggestion
      You can pass a method name or a string. UltiTools-API will search for the method in the same class first. If the method is not found, it will search in the class which is indecated in CmdSuggest. If the method is still not found, it will return the string as the suggestion (i18n supported).
      参数补全建议
      你可以传入一个方法名或一个字符串。UltiTools-API 会首先在同一个类中寻找这个方法。 如果方法没有找到,它会在 CmdSuggest 中指定的类中寻找。 如果方法仍然没有找到,它会将字符串作为建议返回(支持国际化)。
      See Also:
      Default:
      ""