Class SubtypingAnnotationClassLoader
java.lang.Object
org.checkerframework.framework.type.AnnotationClassLoader
org.checkerframework.common.subtyping.SubtypingAnnotationClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class org.checkerframework.framework.type.AnnotationClassLoader
checker, classLoader, processingEnv
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
hasWellDefinedTargetMetaAnnotation
(Class<? extends Annotation> annoClass) Checks to see whether a particular annotation class has theTarget
meta-annotation, and has the requiredElementType
values.Methods inherited from class org.checkerframework.framework.type.AnnotationClassLoader
close, getBundledAnnotationClasses, isSupportedAnnotationClass, loadAnnotationClass, loadAnnotationClasses, loadExternalAnnotationClass, loadExternalAnnotationClassesFromDirectory, printPaths
-
Constructor Details
-
SubtypingAnnotationClassLoader
-
-
Method Details
-
hasWellDefinedTargetMetaAnnotation
Description copied from class:AnnotationClassLoader
Checks to see whether a particular annotation class has theTarget
meta-annotation, and has the requiredElementType
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 loadUnqualified
.- Overrides:
hasWellDefinedTargetMetaAnnotation
in classAnnotationClassLoader
- Parameters:
annoClass
- an annotation class- Returns:
- true if the annotation is well defined, false if it isn't
-