public abstract class AnnotatedMember extends Annotated implements Serializable
| Modifier and Type | Field and Description | 
|---|---|
| protected AnnotationMap | _annotations | 
| protected TypeResolutionContext | _typeContextContext object needed for resolving generic type associated with this
 member (method parameter or return value, or field type). | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | AnnotatedMember(AnnotatedMember base)Copy-constructor. | 
| protected  | AnnotatedMember(TypeResolutionContext ctxt,
               AnnotationMap annotations) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | addIfNotPresent(Annotation a)Method called to augment annotations, by adding specified
 annotation if and only if it is not yet present in the
 annotation map we have. | 
| boolean | addOrOverride(Annotation a)Method called to override an annotation, usually due to a mix-in
 annotation masking or overriding an annotation 'real' constructor
 has. | 
| Iterable<Annotation> | annotations()Accessor that can be used to iterate over all the annotations
 associated with annotated component. | 
| void | fixAccess()Deprecated. 
 Since 2.7 use  fixAccess(boolean)instead | 
| void | fixAccess(boolean force)Method that can be called to modify access rights, by calling
  AccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[], boolean)on
 the underlying annotated element. | 
| protected AnnotationMap | getAllAnnotations()Internal helper method used to access annotation information;
 not exposed to developers since instances are mutable. | 
| <A extends Annotation>  | getAnnotation(Class<A> acls) | 
| abstract Class<?> | getDeclaringClass()Actual physical class in which this memmber was declared. | 
| abstract Member | getMember() | 
| TypeResolutionContext | getTypeContext()Accessor for  TypeResolutionContextthat is used for resolving
 full generic type of this member. | 
| abstract Object | getValue(Object pojo)Optional method that can be used to access the value of
 this member on given object, if this is a supported
 operation for member type. | 
| boolean | hasAnnotation(Class<?> acls) | 
| boolean | hasOneOf(Class<? extends Annotation>[] annoClasses) | 
| abstract void | setValue(Object pojo,
        Object value)Optional method that can be used to assign value of
 this member on given object, if this is a supported
 operation for member type. | 
equals, getAnnotated, getGenericType, getModifiers, getName, getRawType, getType, getType, hashCode, isPublic, toString, withAnnotations, withFallBackAnnotationsFromprotected final transient TypeResolutionContext _typeContext
protected final transient AnnotationMap _annotations
protected AnnotatedMember(TypeResolutionContext ctxt, AnnotationMap annotations)
protected AnnotatedMember(AnnotatedMember base)
public abstract Class<?> getDeclaringClass()
public abstract Member getMember()
public TypeResolutionContext getTypeContext()
TypeResolutionContext that is used for resolving
 full generic type of this member.public final <A extends Annotation> A getAnnotation(Class<A> acls)
getAnnotation in class Annotatedpublic final boolean hasAnnotation(Class<?> acls)
hasAnnotation in class Annotatedpublic boolean hasOneOf(Class<? extends Annotation>[] annoClasses)
public Iterable<Annotation> annotations()
Annotatedannotations in class Annotatedprotected AnnotationMap getAllAnnotations()
AnnotatedgetAllAnnotations in class Annotatedpublic final boolean addOrOverride(Annotation a)
public final boolean addIfNotPresent(Annotation a)
public final void fixAccess(boolean force)
AccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[], boolean) on
 the underlying annotated element.
 Note that caller should verify that
 MapperFeature.CAN_OVERRIDE_ACCESS_MODIFIERS
 is enabled before calling this method; as well as pass
 force flag appropriately.
@Deprecated public final void fixAccess()
fixAccess(boolean) insteadpublic abstract void setValue(Object pojo, Object value) throws UnsupportedOperationException, IllegalArgumentException
This is implemented for fields and single-argument member methods; but not for constructor parameters or other types of methods (like static methods)
public abstract Object getValue(Object pojo) throws UnsupportedOperationException, IllegalArgumentException
This is implemented for fields and no-argument member methods; but not for constructor parameters or other types of methods (like static methods)
Copyright © 2008–2016 FasterXML. All rights reserved.