Annotation Interface ProgrammaticDefaultLocations
@Documented
@Retention(RUNTIME)
@Target(ANNOTATION_TYPE)
public @interface ProgrammaticDefaultLocations
A meta-annotation that specifies the type-use locations where a type qualifier is permitted to be
used as a programmatic default (e.g. by
QualifierDefaults.addCheckedCodeDefault(javax.lang.model.element.AnnotationMirror, org.checkerframework.framework.qual.TypeUseLocation), QualifierDefaults.addUncheckedCodeDefault(org.checkerframework.framework.util.defaults.QualifierDefaults.UncheckedDefaultsMode, javax.lang.model.element.AnnotationMirror, org.checkerframework.framework.qual.TypeUseLocation), or
QualifierDefaults.addElementDefault(javax.lang.model.element.Element, javax.lang.model.element.AnnotationMirror, org.checkerframework.framework.qual.TypeUseLocation)), even
if the qualifier's TargetLocations meta-annotation prohibits explicit use by programmers
at those locations.
If used as a marker annotation without arguments (the default), the qualifier is permitted as
a programmatic default at all type-use locations (TypeUseLocation.ALL).
If a qualifier has no @ProgrammaticDefaultLocations annotation, top and bottom
qualifiers in a qualifier hierarchy are permitted as programmatic defaults at all locations by
default. Other qualifiers are permitted only at the locations allowed by their TargetLocations meta-annotation (or all locations if TargetLocations is also omitted).
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionType-use locations at which the qualifier is permitted as a programmatic default.
-
Element Details
-
value
TypeUseLocation[] valueType-use locations at which the qualifier is permitted as a programmatic default.- Returns:
- type-use locations
- Default:
{ALL}
-