Class SubtypingAnnotationClassLoader

java.lang.Object
org.checkerframework.framework.type.AnnotationClassLoader
org.checkerframework.common.subtyping.SubtypingAnnotationClassLoader
All Implemented Interfaces:
Closeable, AutoCloseable

public class SubtypingAnnotationClassLoader extends AnnotationClassLoader
  • Constructor Details

    • SubtypingAnnotationClassLoader

      public SubtypingAnnotationClassLoader(BaseTypeChecker checker)
  • Method Details

    • hasWellDefinedTargetMetaAnnotation

      protected boolean hasWellDefinedTargetMetaAnnotation(Class<? extends Annotation> annoClass)
      Description copied from class: AnnotationClassLoader
      Checks to see whether a particular annotation class has the Target meta-annotation, and has the required ElementType values.

      A subclass may override this method to load annotations that are not intended to be annotated in source code. E.g.: SubtypingChecker overrides this method to load Unqualified.

      Overrides:
      hasWellDefinedTargetMetaAnnotation in class AnnotationClassLoader
      Parameters:
      annoClass - an annotation class
      Returns:
      true if the annotation is well defined, false if it isn't