Annotation Type Bind


@Retention(RUNTIME) @Target(PARAMETER) public @interface Bind
Binds the annotated argument as a named parameter, and as a positional parameter.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The name to bind the argument to.
  • Field Details

  • Element Details

    • value

      String value
      The name to bind the argument to. If omitted, the name of the annotated parameter is used. It is an error to omit the name when there is no parameter naming information in your class files.
      Returns:
      the name to which the argument will be bound.
      Default:
      ""