java.lang.Object
tools.jackson.databind.introspect.Annotated
tools.jackson.databind.introspect.AnnotatedClass
- All Implemented Interfaces:
TypeResolutionContext
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface tools.jackson.databind.introspect.TypeResolutionContext
TypeResolutionContext.Basic, TypeResolutionContext.Empty -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TypeBindingsType bindings to use for members of_class.protected final Class<?>Type erasedClassmatching_type.protected final AnnotationsCombined list of Jackson annotations that the class has, including inheritable ones from super classes and interfacesprotected final booleanFlag that indicates whether (full) annotation resolution should occur: is disabled for all JDK types.protected final MapperConfig<?>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 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 JavaTypeResolved Java type for which information is collected: also works as context for resolving possible generic type of accessors declared in this type. -
Method Summary
Modifier and TypeMethodDescriptionbooleanfields()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.getType()Full generic type of the annotated element; definition of what exactly this means depends on sub-class.booleanhasAnnotation(Class<? extends Annotation> acls) booleaninthashCode()booleanhasOneOf(Class<? extends Annotation>[] annoClasses) booleanresolveType(Type type) toString()
-
Field Details
-
_config
-
_type
Resolved Java type for which information is collected: also works as context for resolving possible generic type of accessors declared in this type. -
_class
Type erasedClassmatching_type. -
_bindings
Type bindings to use for members of_class. -
_superTypes
Ordered set of super classes and interfaces of the class itself: included in order of precedence -
_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 (full) annotation resolution should occur: is disabled for all JDK types. -
_classAnnotations
Combined list of Jackson annotations that the class has, including inheritable ones from super classes and interfaces -
_creators
-
_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.
-
-
Method Details
-
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
-
annotations
- Specified by:
annotationsin classAnnotated
-
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
-
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
-
memberMethods
-
getMemberMethodCount
public int getMemberMethodCount() -
findMethod
-
getFieldCount
public int getFieldCount() -
fields
-
isNonStaticInnerClass
public boolean isNonStaticInnerClass() -
toString
-
hashCode
public int hashCode() -
equals
-