Class SubtypingAnnotationClassLoader
- java.lang.Object
-
- org.checkerframework.framework.type.AnnotationClassLoader
-
- org.checkerframework.common.subtyping.SubtypingAnnotationClassLoader
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class SubtypingAnnotationClassLoader extends AnnotationClassLoader
-
-
Field Summary
-
Fields inherited from class org.checkerframework.framework.type.AnnotationClassLoader
checker, classLoader, processingEnv
-
-
Constructor Summary
Constructors Constructor Description SubtypingAnnotationClassLoader(BaseTypeChecker checker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanhasWellDefinedTargetMetaAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annoClass)Checks to see whether a particular annotation class has theTargetmeta-annotation, and has the requiredElementTypevalues.-
Methods inherited from class org.checkerframework.framework.type.AnnotationClassLoader
close, getBundledAnnotationClasses, isSupportedAnnotationClass, loadAnnotationClass, loadAnnotationClasses, loadExternalAnnotationClass, loadExternalAnnotationClassesFromDirectory, printPaths
-
-
-
-
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:AnnotationClassLoaderChecks to see whether a particular annotation class has theTargetmeta-annotation, and has the requiredElementTypevalues.A subclass may override this method to load annotations that are not intended to be annotated in source code. E.g.:
SubtypingCheckeroverrides this method to loadUnqualified.- Overrides:
hasWellDefinedTargetMetaAnnotationin classAnnotationClassLoader- Parameters:
annoClass- an annotation class- Returns:
- true if the annotation is well defined, false if it isn't
-
-