Class SubtypingAnnotationClassLoader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class SubtypingAnnotationClassLoader
    extends AnnotationClassLoader
    • Constructor Detail

      • SubtypingAnnotationClassLoader

        public SubtypingAnnotationClassLoader​(BaseTypeChecker checker)
    • Method Detail

      • hasWellDefinedTargetMetaAnnotation

        protected boolean hasWellDefinedTargetMetaAnnotation​(java.lang.Class<? extends java.lang.annotation.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