@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
TypeKind s of types for which an annotation should be implicitly added. |
Class<?>[] |
types
Returns
Class es 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
Class
es 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
.Class
es for which an annotation should be applied