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
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.static AnnotatedClass
construct
(JavaType type, MapperConfig<?> config) Deprecated.static AnnotatedClass
construct
(JavaType type, MapperConfig<?> config, ClassIntrospector.MixInResolver mir) Deprecated.Since 2.9, use methods inAnnotatedClassResolver
instead.static AnnotatedClass
constructWithoutSuperTypes
(Class<?> raw, MapperConfig<?> config) Deprecated.Since 2.9, use methods inAnnotatedClassResolver
instead.static AnnotatedClass
constructWithoutSuperTypes
(Class<?> raw, MapperConfig<?> config, ClassIntrospector.MixInResolver mir) Deprecated.Since 2.9, use methods inAnnotatedClassResolver
instead.boolean
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.Deprecated.Since 2.9; usegetFactoryMethods()
instead.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()
-
Method Details
-
construct
Deprecated.Since 2.9, use methods inAnnotatedClassResolver
instead. -
construct
@Deprecated public static AnnotatedClass construct(JavaType type, MapperConfig<?> config, ClassIntrospector.MixInResolver mir) Deprecated.Since 2.9, use methods inAnnotatedClassResolver
instead. -
constructWithoutSuperTypes
@Deprecated public static AnnotatedClass constructWithoutSuperTypes(Class<?> raw, MapperConfig<?> config) Deprecated.Since 2.9, use methods inAnnotatedClassResolver
instead.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 inAnnotatedClassResolver
instead. -
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() -
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
-
annotations
Deprecated.Description copied from class:Annotated
Accessor that can be used to iterate over all the annotations associated with annotated component.- Specified by:
annotations
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
- 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
-
AnnotatedClassResolver
instead.