Package com.fasterxml.classmate
Class ResolvedTypeWithMembers.AnnotationHandler
- java.lang.Object
-
- com.fasterxml.classmate.ResolvedTypeWithMembers.AnnotationHandler
-
- Enclosing class:
- ResolvedTypeWithMembers
private static final class ResolvedTypeWithMembers.AnnotationHandler extends java.lang.Object
Helper class we use to reduce number of calls toAnnotationConfiguration
; mostly because determination may be expensive.
-
-
Field Summary
Fields Modifier and Type Field Description private AnnotationConfiguration
_annotationConfig
private java.util.HashMap<java.lang.Class<? extends java.lang.annotation.Annotation>,AnnotationInclusion>
_constructorInclusions
private java.util.HashMap<java.lang.Class<? extends java.lang.annotation.Annotation>,AnnotationInclusion>
_fieldInclusions
private java.util.HashMap<java.lang.Class<? extends java.lang.annotation.Annotation>,AnnotationInclusion>
_methodInclusions
private java.util.HashMap<java.lang.Class<? extends java.lang.annotation.Annotation>,AnnotationInclusion>
_parameterInclusions
-
Constructor Summary
Constructors Constructor Description AnnotationHandler(AnnotationConfiguration annotationConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
includeConstructorAnnotation(java.lang.annotation.Annotation ann)
boolean
includeFieldAnnotation(java.lang.annotation.Annotation ann)
boolean
includeMethodAnnotation(java.lang.annotation.Annotation ann)
boolean
includeParameterAnnotation(java.lang.annotation.Annotation ann)
AnnotationInclusion
methodInclusion(java.lang.annotation.Annotation ann)
AnnotationInclusion
parameterInclusion(java.lang.annotation.Annotation ann)
-
-
-
Field Detail
-
_annotationConfig
private final AnnotationConfiguration _annotationConfig
-
_fieldInclusions
private java.util.HashMap<java.lang.Class<? extends java.lang.annotation.Annotation>,AnnotationInclusion> _fieldInclusions
-
_constructorInclusions
private java.util.HashMap<java.lang.Class<? extends java.lang.annotation.Annotation>,AnnotationInclusion> _constructorInclusions
-
_methodInclusions
private java.util.HashMap<java.lang.Class<? extends java.lang.annotation.Annotation>,AnnotationInclusion> _methodInclusions
-
_parameterInclusions
private java.util.HashMap<java.lang.Class<? extends java.lang.annotation.Annotation>,AnnotationInclusion> _parameterInclusions
-
-
Constructor Detail
-
AnnotationHandler
public AnnotationHandler(AnnotationConfiguration annotationConfig)
-
-
Method Detail
-
includeConstructorAnnotation
public boolean includeConstructorAnnotation(java.lang.annotation.Annotation ann)
-
includeFieldAnnotation
public boolean includeFieldAnnotation(java.lang.annotation.Annotation ann)
-
includeMethodAnnotation
public boolean includeMethodAnnotation(java.lang.annotation.Annotation ann)
-
methodInclusion
public AnnotationInclusion methodInclusion(java.lang.annotation.Annotation ann)
-
includeParameterAnnotation
public boolean includeParameterAnnotation(java.lang.annotation.Annotation ann)
-
parameterInclusion
public AnnotationInclusion parameterInclusion(java.lang.annotation.Annotation ann)
-
-