public final class AnnotatedClass extends Annotated implements TypeResolutionContext
Modifier and Type | Class and Description |
---|---|
static class |
AnnotatedClass.Creators |
TypeResolutionContext.Basic
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 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 |
---|---|
static AnnotatedClass |
construct(JavaType type,
MapperConfig<?> config)
Deprecated.
Since 2.9, use methods in
AnnotatedClassResolver instead. |
static AnnotatedClass |
construct(JavaType type,
MapperConfig<?> config,
ClassIntrospector.MixInResolver mir)
Deprecated.
Since 2.9, use methods in
AnnotatedClassResolver instead. |
static AnnotatedClass |
constructWithoutSuperTypes(Class<?> raw,
MapperConfig<?> config)
Deprecated.
Since 2.9, use methods in
AnnotatedClassResolver instead. |
static AnnotatedClass |
constructWithoutSuperTypes(Class<?> raw,
MapperConfig<?> config,
ClassIntrospector.MixInResolver mir)
Deprecated.
Since 2.9, use methods in
AnnotatedClassResolver instead. |
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.
|
List<AnnotatedMethod> |
getStaticMethods()
Deprecated.
Since 2.9; use
getFactoryMethods() instead. |
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() |
getGenericType, getType, isPublic
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 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
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–2017 FasterXML. All rights reserved.