Class AnnotatedClass
java.lang.Object
com.fasterxml.jackson.databind.introspect.Annotated
com.fasterxml.jackson.databind.introspect.AnnotatedClass
- All Implemented Interfaces:
TypeResolutionContext
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.fasterxml.jackson.databind.introspect.TypeResolutionContext
TypeResolutionContext.Basic, TypeResolutionContext.Empty -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AnnotationIntrospectorFilter used to determine which annotations to gather; used to optimize things so that unnecessary annotations are ignored.protected final TypeBindingsType bindings to use for members of_class.protected final Class<?>Class for which annotations apply, and that owns other components (constructors, methods)protected final AnnotationsCombined list of Jackson annotations that the class has, including inheritable ones from super classes and interfacesprotected final booleanFlag that indicates whether (fulll) annotation resolution should occur: starting with 2.11 is disabled for JDK container types.protected AnnotatedClass.Creatorsprotected List<AnnotatedField>Member fields of interest: ones that are either public, or have at least one annotation.protected AnnotatedMethodMapMember methods of interest; for now ones with 0 or 1 arguments (just optimization, since others won't be used now)protected final ClassIntrospector.MixInResolverObject that knows mapping of mix-in classes (ones that contain annotations to add) with their target classes (ones that get these additional annotations "mixed in").protected BooleanLazily determined property to see if this is a non-static inner class.protected final Class<?>Primary mix-in class; one to use for the annotated class itself.Ordered set of super classes and interfaces of the class itself: included in order of precedenceprotected final JavaTypeprotected final TypeFactory -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.static AnnotatedClassconstruct(JavaType type, MapperConfig<?> config) Deprecated.static AnnotatedClassconstruct(JavaType type, MapperConfig<?> config, ClassIntrospector.MixInResolver mir) Deprecated.Since 2.9, use methods inAnnotatedClassResolverinstead.static AnnotatedClassconstructWithoutSuperTypes(Class<?> raw, MapperConfig<?> config) Deprecated.Since 2.9, use methods inAnnotatedClassResolverinstead.static AnnotatedClassconstructWithoutSuperTypes(Class<?> raw, MapperConfig<?> config, ClassIntrospector.MixInResolver mir) Deprecated.Since 2.9, use methods inAnnotatedClassResolverinstead.booleanfields()findMethod(String name, Class<?>[] paramTypes) Class<?>Method that can be used to find actual JDK element that this instance represents.<A extends Annotation>
AgetAnnotation(Class<A> acls) intintintgetName()Class<?>"Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.Deprecated.Since 2.9; usegetFactoryMethods()instead.getType()Full generic type of the annotated element; definition of what exactly this means depends on sub-class.booleanhasAnnotation(Class<?> acls) booleaninthashCode()booleanhasOneOf(Class<? extends Annotation>[] annoClasses) booleanresolveType(Type type) toString()
-
Field Details
-
_type
- Since:
- 2.7
-
_class
Class for which annotations apply, and that owns other components (constructors, methods) -
_bindings
Type bindings to use for members of_class.- Since:
- 2.7
-
_superTypes
Ordered set of super classes and interfaces of the class itself: included in order of precedence -
_annotationIntrospector
Filter used to determine which annotations to gather; used to optimize things so that unnecessary annotations are ignored. -
_typeFactory
- Since:
- 2.7
-
_mixInResolver
Object that knows mapping of mix-in classes (ones that contain annotations to add) with their target classes (ones that get these additional annotations "mixed in"). -
_primaryMixIn
Primary mix-in class; one to use for the annotated class itself. Can be null. -
_collectAnnotations
protected final boolean _collectAnnotationsFlag that indicates whether (fulll) annotation resolution should occur: starting with 2.11 is disabled for JDK container types.- Since:
- 2.11
-
_classAnnotations
Combined list of Jackson annotations that the class has, including inheritable ones from super classes and interfaces -
_creators
- Since:
- 2.9
-
_memberMethods
Member methods of interest; for now ones with 0 or 1 arguments (just optimization, since others won't be used now) -
_fields
Member fields of interest: ones that are either public, or have at least one annotation. -
_nonStaticInnerClass
Lazily determined property to see if this is a non-static inner class.- Since:
- 2.8.7
-
-
Method Details
-
construct
Deprecated.Since 2.9, use methods inAnnotatedClassResolverinstead. -
construct
@Deprecated public static AnnotatedClass construct(JavaType type, MapperConfig<?> config, ClassIntrospector.MixInResolver mir) Deprecated.Since 2.9, use methods inAnnotatedClassResolverinstead. -
constructWithoutSuperTypes
@Deprecated public static AnnotatedClass constructWithoutSuperTypes(Class<?> raw, MapperConfig<?> config) Deprecated.Since 2.9, use methods inAnnotatedClassResolverinstead.Method similar toconstruct(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.cfg.MapperConfig<?>), but that will NOT include information from supertypes; only class itself and any direct mix-ins it may have. -
constructWithoutSuperTypes
@Deprecated public static AnnotatedClass constructWithoutSuperTypes(Class<?> raw, MapperConfig<?> config, ClassIntrospector.MixInResolver mir) Deprecated.Since 2.9, use methods inAnnotatedClassResolverinstead. -
resolveType
- Specified by:
resolveTypein interfaceTypeResolutionContext
-
getAnnotated
Description copied from class:AnnotatedMethod that can be used to find actual JDK element that this instance represents. It is non-null, except for method/constructor parameters which do not have a JDK counterpart.- Specified by:
getAnnotatedin classAnnotated
-
getModifiers
public int getModifiers()- Specified by:
getModifiersin classAnnotated
-
getName
-
getAnnotation
- Specified by:
getAnnotationin classAnnotated
-
hasAnnotation
- Specified by:
hasAnnotationin classAnnotated
-
hasOneOf
-
getRawType
Description copied from class:Annotated"Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.- Specified by:
getRawTypein classAnnotated
-
annotations
Deprecated.Description copied from class:AnnotatedAccessor that can be used to iterate over all the annotations associated with annotated component.- Specified by:
annotationsin classAnnotated
-
getType
Description copied from class:AnnotatedFull generic type of the annotated element; definition of what exactly this means depends on sub-class. -
getAnnotations
-
hasAnnotations
public boolean hasAnnotations() -
getDefaultConstructor
-
getConstructors
-
getFactoryMethods
- Since:
- 2.9
-
getStaticMethods
Deprecated.Since 2.9; usegetFactoryMethods()instead. -
memberMethods
-
getMemberMethodCount
public int getMemberMethodCount() -
findMethod
-
getFieldCount
public int getFieldCount() -
fields
-
isNonStaticInnerClass
public boolean isNonStaticInnerClass()- Since:
- 2.9
-
toString
-
hashCode
public int hashCode() -
equals
-
AnnotatedClassResolverinstead.