Annotation Interface UpperBoundFor
A meta-annotation applied to the declaration of a type qualifier. It specifies that the
annotation should be the upper bound for
- all uses of a particular type, and
- all uses of a particular kind of type.
@DefaultFor(classes=String.class)
@interface MyAnno {}
The upper bound applies to every occurrence of the given classes and also to every occurrence of the given type kinds.
- See the Checker Framework Manual:
- Upper bound of qualifiers on uses of a given type
-
Optional Element Summary
-
Element Details
-
typeKinds
TypeKind[] typeKindsReturnsTypeKind
s of types that get an upper bound. The meta-annotated annotation is the upper bound.- Returns:
TypeKind
s of types that get an upper bound
- Default:
{}
-
types
Class<?>[] typesReturnsClass
es that should get an upper bound. The meta-annotated annotation is the upper bound.- Returns:
Class
es that get an upper bound
- Default:
{}
-