public final class AnnotatedClass extends Annotated implements TypeResolutionContext
Modifier and Type | Class and Description |
---|---|
static class |
AnnotatedClass.Creators |
TypeResolutionContext.Basic, TypeResolutionContext.Empty
Modifier and Type | Field and Description |
---|---|
protected AnnotationIntrospector |
_annotationIntrospector
Filter used to determine which annotations to gather; used
to optimize things so that unnecessary annotations are
ignored.
|
protected TypeBindings |
_bindings
Type bindings to use for members of
_class . |
protected Class<?> |
_class
Class for which annotations apply, and that owns other
components (constructors, methods)
|
protected Annotations |
_classAnnotations
Combined list of Jackson annotations that the class has,
including inheritable ones from super classes and interfaces
|
protected boolean |
_collectAnnotations
Flag that indicates whether (fulll) annotation resolution should
occur: starting with 2.11 is disabled for JDK container types.
|
protected AnnotatedClass.Creators |
_creators |
protected List<AnnotatedField> |
_fields
Member fields of interest: ones that are either public,
or have at least one annotation.
|
protected AnnotatedMethodMap |
_memberMethods
Member methods of interest; for now ones with 0 or 1 arguments
(just optimization, since others won't be used now)
|
protected ClassIntrospector.MixInResolver |
_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 |
_nonStaticInnerClass
Lazily determined property to see if this is a non-static inner
class.
|
protected Class<?> |
_primaryMixIn
Primary mix-in class; one to use for the annotated class
itself.
|
protected List<JavaType> |
_superTypes
Ordered set of super classes and interfaces of the
class itself: included in order of precedence
|
protected JavaType |
_type |
protected TypeFactory |
_typeFactory |
protected final JavaType _type
protected final Class<?> _class
protected final TypeBindings _bindings
_class
.protected final List<JavaType> _superTypes
protected final AnnotationIntrospector _annotationIntrospector
protected final TypeFactory _typeFactory
protected final ClassIntrospector.MixInResolver _mixInResolver
protected final Class<?> _primaryMixIn
protected final boolean _collectAnnotations
protected final Annotations _classAnnotations
protected AnnotatedClass.Creators _creators
protected AnnotatedMethodMap _memberMethods
protected List<AnnotatedField> _fields
protected transient Boolean _nonStaticInnerClass
@Deprecated public static AnnotatedClass construct(JavaType type, MapperConfig<?> config)
AnnotatedClassResolver
instead.@Deprecated public static AnnotatedClass construct(JavaType type, MapperConfig<?> config, ClassIntrospector.MixInResolver mir)
AnnotatedClassResolver
instead.@Deprecated public static AnnotatedClass constructWithoutSuperTypes(Class<?> raw, MapperConfig<?> config)
AnnotatedClassResolver
instead.@Deprecated public static AnnotatedClass constructWithoutSuperTypes(Class<?> raw, MapperConfig<?> config, ClassIntrospector.MixInResolver mir)
AnnotatedClassResolver
instead.public JavaType resolveType(Type type)
resolveType
in interface TypeResolutionContext
public Class<?> getAnnotated()
Annotated
getAnnotated
in class Annotated
public int getModifiers()
getModifiers
in class Annotated
public <A extends Annotation> A getAnnotation(Class<A> acls)
getAnnotation
in class Annotated
public boolean hasAnnotation(Class<?> acls)
hasAnnotation
in class Annotated
public boolean hasOneOf(Class<? extends Annotation>[] annoClasses)
public Class<?> getRawType()
Annotated
getRawType
in class Annotated
@Deprecated public Iterable<Annotation> annotations()
Annotated
annotations
in class Annotated
public JavaType getType()
Annotated
public Annotations getAnnotations()
public boolean hasAnnotations()
public AnnotatedConstructor getDefaultConstructor()
public List<AnnotatedConstructor> getConstructors()
public List<AnnotatedMethod> getFactoryMethods()
@Deprecated public List<AnnotatedMethod> getStaticMethods()
getFactoryMethods()
instead.public Iterable<AnnotatedMethod> memberMethods()
public int getMemberMethodCount()
public AnnotatedMethod findMethod(String name, Class<?>[] paramTypes)
public int getFieldCount()
public Iterable<AnnotatedField> fields()
public boolean isNonStaticInnerClass()
Copyright © 2008–2022 FasterXML. All rights reserved.