@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface AliasFor
| Modifier and Type | Optional Element and Description |
|---|---|
Class<? extends Annotation> |
annotation
The type of annotation in which the aliased
attribute() is declared. |
String |
attribute
The name of the attribute that this attribute is an alias for.
|
String |
value
Alias for
attribute(). |
@AliasFor(value="attribute") public abstract String value
attribute().
Intended to be used instead of attribute() when annotation()
is not declared — for example: @AliasFor("value") instead of
@AliasFor(attribute = "value").
public abstract Class<? extends Annotation> annotation
attribute() is declared.
Defaults to Annotation, implying that the aliased attribute is
declared in the same annotation as this attribute.
Copyright © 2025. All rights reserved.