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 (full) annotation resolution should
occur: starting with 2.11 is disabled for JDK container types
(
ClassUtil.isJDKClass(Class) and type.isContainerType() ). |
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 |
Modifier and Type | Method and Description |
---|---|
Iterable<Annotation> |
annotations()
Deprecated.
|
boolean |
equals(Object o) |
Iterable<AnnotatedField> |
fields() |
AnnotatedMethod |
findMethod(String name,
Class<?>[] paramTypes) |
Class<?> |
getAnnotated()
Method that can be used to find actual JDK element that this instance
represents.
|
<A extends Annotation> |
getAnnotation(Class<A> acls) |
Annotations |
getAnnotations() |
List<AnnotatedConstructor> |
getConstructors() |
AnnotatedConstructor |
getDefaultConstructor() |
List<AnnotatedMethod> |
getFactoryMethods() |
int |
getFieldCount() |
int |
getMemberMethodCount() |
int |
getModifiers() |
String |
getName() |
Class<?> |
getRawType()
"Raw" type (type-erased class) of the annotated element; definition
of what exactly this means depends on sub-class.
|
JavaType |
getType()
Full generic type of the annotated element; definition
of what exactly this means depends on sub-class.
|
boolean |
hasAnnotation(Class<?> acls) |
boolean |
hasAnnotations() |
int |
hashCode() |
boolean |
hasOneOf(Class<? extends Annotation>[] annoClasses) |
boolean |
isNonStaticInnerClass() |
Iterable<AnnotatedMethod> |
memberMethods() |
JavaType |
resolveType(Type type) |
String |
toString() |
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
ClassUtil.isJDKClass(Class)
and type.isContainerType()
).
Later in 2.19 all JDK types have this disabled.protected final Annotations _classAnnotations
protected AnnotatedClass.Creators _creators
protected AnnotatedMethodMap _memberMethods
protected List<AnnotatedField> _fields
protected transient Boolean _nonStaticInnerClass
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()
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–2025 FasterXML. All rights reserved.