@Retention(value=RUNTIME) @Target(value=METHOD) @Documented @Repeatable(value=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
AnnotationMetadata
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends java.lang.annotation.Annotation> |
annotation |
java.lang.String |
annotationName |
java.lang.String |
member |
public abstract java.lang.String member
this
member is an alias forpublic abstract java.lang.Class<? extends java.lang.annotation.Annotation> annotation
member()
is declared.
If not specified the alias is applied to the current annotation.public abstract java.lang.String annotationName
member()
is declared.
If not specified the alias is applied to the current annotation.