public final class AnnotatedClass extends Annotated implements TypeResolutionContext
TypeResolutionContext.Basic| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<java.lang.annotation.Annotation> |
annotations()
Accessor that can be used to iterate over all the annotations
associated with annotated component.
|
static AnnotatedClass |
construct(JavaType type,
MapperConfig<?> config)
Factory method that instantiates an instance.
|
static AnnotatedClass |
construct(JavaType type,
MapperConfig<?> config,
ClassIntrospector.MixInResolver mir) |
static AnnotatedClass |
constructWithoutSuperTypes(java.lang.Class<?> cls,
MapperConfig<?> config)
Method similar to
construct(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.cfg.MapperConfig<?>), but that will NOT include
information from supertypes; only class itself and any direct
mix-ins it may have. |
static AnnotatedClass |
constructWithoutSuperTypes(java.lang.Class<?> cls,
MapperConfig<?> config,
ClassIntrospector.MixInResolver mir) |
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() |
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() |
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) |
java.lang.Iterable<AnnotatedMethod> |
memberMethods() |
JavaType |
resolveType(java.lang.reflect.Type type) |
java.lang.String |
toString() |
AnnotatedClass |
withAnnotations(AnnotationMap ann)
Fluent factory method that will construct a new instance that uses specified
instance annotations instead of currently configured ones.
|
getGenericType, getType, isPublic, withFallBackAnnotationsFrompublic AnnotatedClass withAnnotations(AnnotationMap ann)
AnnotatedwithAnnotations in class Annotatedpublic static AnnotatedClass construct(JavaType type, MapperConfig<?> config)
public static AnnotatedClass construct(JavaType type, MapperConfig<?> config, ClassIntrospector.MixInResolver mir)
public static AnnotatedClass constructWithoutSuperTypes(java.lang.Class<?> cls, MapperConfig<?> config)
construct(com.fasterxml.jackson.databind.JavaType, com.fasterxml.jackson.databind.cfg.MapperConfig<?>), but that will NOT include
information from supertypes; only class itself and any direct
mix-ins it may have.public static AnnotatedClass constructWithoutSuperTypes(java.lang.Class<?> cls, MapperConfig<?> config, ClassIntrospector.MixInResolver mir)
public JavaType resolveType(java.lang.reflect.Type type)
resolveType in interface TypeResolutionContextpublic java.lang.Class<?> getAnnotated()
AnnotatedgetAnnotated in class Annotatedpublic int getModifiers()
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> acls)
getAnnotation in class Annotatedpublic boolean hasAnnotation(java.lang.Class<?> acls)
hasAnnotation in class Annotatedpublic boolean hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
public java.lang.Class<?> getRawType()
AnnotatedgetRawType in class Annotatedpublic java.lang.Iterable<java.lang.annotation.Annotation> annotations()
Annotatedannotations in class Annotatedpublic JavaType getType()
Annotatedpublic Annotations getAnnotations()
public boolean hasAnnotations()
public AnnotatedConstructor getDefaultConstructor()
public java.util.List<AnnotatedConstructor> getConstructors()
public java.util.List<AnnotatedMethod> getStaticMethods()
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()
"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"