Package com.google.inject.internal
Class Annotations.AnnotationChecker
java.lang.Object
com.google.inject.internal.Annotations.AnnotationChecker
- Enclosing class:
Annotations
Checks for the presence of annotations. Caches results because Android doesn't.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection
<Class<? extends Annotation>> (package private) final com.google.common.cache.LoadingCache
<Class<? extends Annotation>, Boolean> private com.google.common.cache.CacheLoader
<Class<? extends Annotation>, Boolean> Returns true if the given class has one of the desired annotations. -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationChecker
(Collection<Class<? extends Annotation>> annotationTypes) Constructs a new checker that looks for annotations of the given types. -
Method Summary
Modifier and TypeMethodDescription(package private) boolean
hasAnnotations
(Class<? extends Annotation> annotated) Returns true if the given type has one of the desired annotations.
-
Field Details
-
annotationTypes
-
hasAnnotations
Returns true if the given class has one of the desired annotations. -
cache
-
-
Constructor Details
-
AnnotationChecker
AnnotationChecker(Collection<Class<? extends Annotation>> annotationTypes) Constructs a new checker that looks for annotations of the given types.
-
-
Method Details
-
hasAnnotations
Returns true if the given type has one of the desired annotations.
-