Annotation Interface AliasFor


Allows specifying an annotation member alias. In other words, a value of an annotation member can be used to represent the value of another annotation's member or a another member within the same annotation.

The representation is constructed via the AnnotationMetadata interface

Since:
1.0
Author:
Graeme Rocher
See Also:
  • Element Details

    • member

      String member
      Returns:
      The name of the member that this member is an alias for
      Default:
      ""
    • annotation

      Class<? extends Annotation> annotation
      Returns:
      The type of annotation in which the aliased member() is declared. If not specified the alias is applied to the current annotation.
      Default:
      java.lang.annotation.Annotation.class
    • annotationName

      String annotationName
      Returns:
      The name of the annotation in which the aliased member() is declared. If not specified the alias is applied to the current annotation.
      Default:
      ""