@Documented @Retention(value=RUNTIME) @Target(value=ANNOTATION_TYPE) public @interface DefaultFor
The default applies to every match for any of this annotation's conditions.
| Modifier and Type | Optional Element and Description |
|---|---|
TypeKind[] |
typeKinds
Returns
TypeKinds of types for which an annotation should be implicitly added. |
Class<?>[] |
types
Returns
Classes for which an annotation should be applied. |
TypeUseLocation[] |
value
Returns the locations to which the annotation should be applied.
|
public abstract TypeUseLocation[] value
public abstract Class<?>[] types
Classes for which an annotation should be applied. For example, if
@MyAnno is meta-annotated with @DefaultFor(classes=String.class), then every
occurrence of String is actually @MyAnno String.Classes for which an annotation should be applied