public final class AnnotatedClass extends Annotated implements TypeResolutionContext
Modifier and Type | Class and Description |
---|---|
static class |
AnnotatedClass.Creators |
TypeResolutionContext.Basic
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<java.lang.annotation.Annotation> |
annotations()
Deprecated.
|
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(java.lang.Class<?> raw,
MapperConfig<?> config)
Deprecated.
Since 2.9, use methods in
AnnotatedClassResolver instead. |
static AnnotatedClass |
constructWithoutSuperTypes(java.lang.Class<?> raw,
MapperConfig<?> config,
ClassIntrospector.MixInResolver mir)
Deprecated.
Since 2.9, use methods in
AnnotatedClassResolver instead. |
boolean |
equals(java.lang.Object o) |
java.lang.Iterable<AnnotatedField> |
fields() |
AnnotatedMethod |
findMethod(java.lang.String name,
java.lang.Class<?>[] paramTypes) |
java.lang.Class<?> |
getAnnotated()
Method that can be used to find actual JDK element that this instance
represents.
|
<A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> acls) |
Annotations |
getAnnotations() |
java.util.List<AnnotatedConstructor> |
getConstructors() |
AnnotatedConstructor |
getDefaultConstructor() |
java.util.List<AnnotatedMethod> |
getFactoryMethods() |
int |
getFieldCount() |
int |
getMemberMethodCount() |
int |
getModifiers() |
java.lang.String |
getName() |
java.lang.Class<?> |
getRawType()
"Raw" type (type-erased class) of the annotated element; definition
of what exactly this means depends on sub-class.
|
java.util.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(java.lang.Class<?> acls) |
boolean |
hasAnnotations() |
int |
hashCode() |
boolean |
hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses) |
boolean |
isNonStaticInnerClass() |
java.lang.Iterable<AnnotatedMethod> |
memberMethods() |
JavaType |
resolveType(java.lang.reflect.Type type) |
java.lang.String |
toString() |
getGenericType, getType, isPublic
@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(java.lang.Class<?> raw, MapperConfig<?> config)
AnnotatedClassResolver
instead.@Deprecated public static AnnotatedClass constructWithoutSuperTypes(java.lang.Class<?> raw, MapperConfig<?> config, ClassIntrospector.MixInResolver mir)
AnnotatedClassResolver
instead.public JavaType resolveType(java.lang.reflect.Type type)
resolveType
in interface TypeResolutionContext
public java.lang.Class<?> getAnnotated()
Annotated
getAnnotated
in class Annotated
public int getModifiers()
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> acls)
getAnnotation
in class Annotated
public boolean hasAnnotation(java.lang.Class<?> acls)
hasAnnotation
in class Annotated
public boolean hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
public java.lang.Class<?> getRawType()
Annotated
getRawType
in class Annotated
@Deprecated public java.lang.Iterable<java.lang.annotation.Annotation> annotations()
Annotated
annotations
in class Annotated
public JavaType getType()
Annotated
public Annotations getAnnotations()
public boolean hasAnnotations()
public AnnotatedConstructor getDefaultConstructor()
public java.util.List<AnnotatedConstructor> getConstructors()
public java.util.List<AnnotatedMethod> getFactoryMethods()
@Deprecated public java.util.List<AnnotatedMethod> getStaticMethods()
getFactoryMethods()
instead.public java.lang.Iterable<AnnotatedMethod> memberMethods()
public int getMemberMethodCount()
public AnnotatedMethod findMethod(java.lang.String name, java.lang.Class<?>[] paramTypes)
public int getFieldCount()
public java.lang.Iterable<AnnotatedField> fields()
public boolean isNonStaticInnerClass()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"