@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 |
|---|---|
Class<? extends Annotation> |
annotation |
String |
annotationName |
String |
member |
public abstract String member
this member is an alias forpublic abstract Class<? extends Annotation> annotation
member() is declared.
If not specified the alias is applied to the current annotation.