Annotation Type Define


@Target(PARAMETER) @Retention(RUNTIME) public @interface Define
Defines a named attribute as the argument passed to the annotated parameter. Attributes are stored on the StatementContext, and may be used by statement customizers such as the template engine.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The attribute name to define.
  • Element Details

    • value

      String value
      The attribute name to define. 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 attribute name.
      Default:
      ""