public abstract class AnnotatedMember extends Annotated implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<java.lang.annotation.Annotation> |
annotations()
Deprecated.
|
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. |
AnnotationMap |
getAllAnnotations()
NOTE: promoted in 2.9 from `Annotated` up
|
<A extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<A> acls) |
abstract java.lang.Class<?> |
getDeclaringClass()
Actual physical class in which this memmber was declared.
|
java.lang.String |
getFullName() |
abstract java.lang.reflect.Member |
getMember() |
TypeResolutionContext |
getTypeContext()
Deprecated.
Since 2.9
|
abstract java.lang.Object |
getValue(java.lang.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(java.lang.Class<?> acls) |
boolean |
hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses) |
abstract void |
setValue(java.lang.Object pojo,
java.lang.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.
|
abstract Annotated |
withAnnotations(AnnotationMap fallback)
Fluent factory method that will construct a new instance that uses specified
instance annotations instead of currently configured ones.
|
equals, getAnnotated, getGenericType, getName, getRawType, getType, getType, hashCode, isPublic, toString
public abstract Annotated withAnnotations(AnnotationMap fallback)
public abstract java.lang.Class<?> getDeclaringClass()
public abstract java.lang.reflect.Member getMember()
public java.lang.String getFullName()
@Deprecated public TypeResolutionContext getTypeContext()
TypeResolutionContext
that is used for resolving
full generic type of this member.public final <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> acls)
getAnnotation
in class Annotated
public final boolean hasAnnotation(java.lang.Class<?> acls)
hasAnnotation
in class Annotated
public boolean hasOneOf(java.lang.Class<? extends java.lang.annotation.Annotation>[] annoClasses)
@Deprecated public java.lang.Iterable<java.lang.annotation.Annotation> annotations()
Annotated
annotations
in class Annotated
public AnnotationMap getAllAnnotations()
NOTE: promoted in 2.9 from `Annotated` up
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.
public abstract void setValue(java.lang.Object pojo, java.lang.Object value) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
This is implemented for fields and single-argument member methods; but not for constructor parameters or other types of methods (like static methods)
java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
public abstract java.lang.Object getValue(java.lang.Object pojo) throws java.lang.UnsupportedOperationException, java.lang.IllegalArgumentException
This is implemented for fields and no-argument member methods; but not for constructor parameters or other types of methods (like static methods)
java.lang.UnsupportedOperationException
java.lang.IllegalArgumentException
Copyright © 2010 - 2020 Adobe. All Rights Reserved