Annotation Type AliasFor


  • @Retention(RUNTIME)
    @Target(METHOD)
    @Documented
    @Repeatable(Aliases.class)
    public @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
    See Also:
    AnnotationMetadata
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.Class<? extends java.lang.annotation.Annotation> annotation  
      java.lang.String annotationName  
      java.lang.String member  
    • Element Detail

      • member

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

        java.lang.Class<? extends java.lang.annotation.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

        java.lang.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:
        ""