Class ElementDefaultChecker

All Implemented Interfaces:
Processor, OptionConfiguration

@SupportedOptions({"lateElementDefault","conflictingElementDefault","disallowedCheckedDefault","disallowedUncheckedDefault","disallowedElementDefault","programmaticAllowedDefault"}) public final class ElementDefaultChecker extends BaseTypeChecker
A checker used only to test QualifierDefaults.addElementDefault(javax.lang.model.element.Element, javax.lang.model.element.AnnotationMirror, org.checkerframework.framework.qual.TypeUseLocation): its ElementDefaultAnnotatedTypeFactory calls that method directly, rather than through a written @DefaultQualifier annotation, on one package and two classes of framework/tests/elementdefault's test sources.

With -AlateElementDefault, the factory instead calls that method after type checking has begun, which must be reported as a type-system error. With -AconflictingElementDefault, it registers a default that conflicts with a @DefaultQualifier written on the same declaration, which must likewise be reported as a type-system error.

  • Constructor Details

    • ElementDefaultChecker

      public ElementDefaultChecker()