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 TypeBindings
Type bindings to use for members of_class
.protected final Class<?>
Type erasedClass
matching_type
.protected final Annotations
Combined list of Jackson annotations that the class has, including inheritable ones from super classes and interfacesprotected final boolean
Flag that indicates whether (full) annotation resolution should occur: is disabled for all JDK types.protected final MapperConfig<?>
protected AnnotatedClass.Creators
protected List<AnnotatedField>
Member fields of interest: ones that are either public, or have at least one annotation.protected AnnotatedMethodMap
Member methods of interest; for now ones with 0 or 1 arguments (just optimization, since others won't be used now)protected final 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").protected Boolean
Lazily 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 JavaType
Resolved 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 TypeMethodDescriptionboolean
fields()
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) int
int
int
getName()
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.boolean
hasAnnotation
(Class<?> acls) boolean
int
hashCode()
boolean
hasOneOf
(Class<? extends Annotation>[] annoClasses) boolean
resolveType
(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 erasedClass
matching_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:
resolveType
in interfaceTypeResolutionContext
-
getAnnotated
Description copied from class:Annotated
Method 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:
getAnnotated
in classAnnotated
-
getModifiers
public int getModifiers()- Specified by:
getModifiers
in classAnnotated
-
getName
-
getAnnotation
- Specified by:
getAnnotation
in classAnnotated
-
hasAnnotation
- Specified by:
hasAnnotation
in 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:
getRawType
in classAnnotated
-
getType
Description copied from class:Annotated
Full 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
-