Class AnnotatedClass
- java.lang.Object
-
- com.fasterxml.jackson.databind.introspect.Annotated
-
- com.fasterxml.jackson.databind.introspect.AnnotatedClass
-
- All Implemented Interfaces:
TypeResolutionContext
public final class AnnotatedClass extends Annotated implements TypeResolutionContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotatedClass.Creators
-
Nested classes/interfaces inherited from interface com.fasterxml.jackson.databind.introspect.TypeResolutionContext
TypeResolutionContext.Basic, TypeResolutionContext.Empty
-
-
Method Summary
-
-
-
Method Detail
-
construct
@Deprecated public static AnnotatedClass construct(JavaType type, MapperConfig<?> config)
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.
-
constructWithoutSuperTypes
@Deprecated public static AnnotatedClass constructWithoutSuperTypes(Class<?> raw, MapperConfig<?> config, ClassIntrospector.MixInResolver mir)
Deprecated.Since 2.9, use methods inAnnotatedClassResolver
instead.
-
resolveType
public JavaType resolveType(Type type)
- Specified by:
resolveType
in interfaceTypeResolutionContext
-
getAnnotated
public Class<?> 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()
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> acls)
- Specified by:
getAnnotation
in classAnnotated
-
hasAnnotation
public boolean hasAnnotation(Class<?> acls)
- Specified by:
hasAnnotation
in classAnnotated
-
hasOneOf
public boolean hasOneOf(Class<? extends Annotation>[] annoClasses)
-
getRawType
public Class<?> 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 public Iterable<Annotation> 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
public JavaType getType()
Description copied from class:Annotated
Full generic type of the annotated element; definition of what exactly this means depends on sub-class.
-
getAnnotations
public Annotations getAnnotations()
-
hasAnnotations
public boolean hasAnnotations()
-
getDefaultConstructor
public AnnotatedConstructor getDefaultConstructor()
-
getConstructors
public List<AnnotatedConstructor> getConstructors()
-
getFactoryMethods
public List<AnnotatedMethod> getFactoryMethods()
- Since:
- 2.9
-
getStaticMethods
@Deprecated public List<AnnotatedMethod> getStaticMethods()
Deprecated.Since 2.9; usegetFactoryMethods()
instead.
-
memberMethods
public Iterable<AnnotatedMethod> memberMethods()
-
getMemberMethodCount
public int getMemberMethodCount()
-
findMethod
public AnnotatedMethod findMethod(String name, Class<?>[] paramTypes)
-
getFieldCount
public int getFieldCount()
-
fields
public Iterable<AnnotatedField> fields()
-
isNonStaticInnerClass
public boolean isNonStaticInnerClass()
- Since:
- 2.9
-
-