Annotation Interface Named


@Target(PARAMETER) @Retention(RUNTIME) public @interface Named
An annotation used to override the names of command parameters.

When present, value() will be used, otherwise, the compiler-stored name will be used. Note that if the compiler does not reserve names, it will be "arg0", "arg1", etc.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The overridden parameter name
  • Element Details

    • value

      String value
      The overridden parameter name
      Returns:
      The parameter name