public abstract class AnnotatedMember extends Annotated
Modifier and Type | Field and Description |
---|---|
protected AnnotationMap |
_annotations |
Modifier | Constructor and Description |
---|---|
protected |
AnnotatedMember(AnnotationMap annotations) |
Modifier and Type | Method and Description |
---|---|
void |
fixAccess()
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() |
abstract Class<?> |
getDeclaringClass() |
abstract Member |
getMember() |
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.
|
getAnnotated, getAnnotation, getGenericType, getModifiers, getName, getRawType, getType, hasAnnotation, isPublic, withAnnotations, withFallBackAnnotationsFrom
protected final AnnotationMap _annotations
protected AnnotatedMember(AnnotationMap annotations)
public abstract Class<?> getDeclaringClass()
public abstract Member getMember()
protected AnnotationMap getAllAnnotations()
getAllAnnotations
in class Annotated
public final void fixAccess()
AccessibleObject.setAccessible(java.lang.reflect.AccessibleObject[], boolean)
on
the underlying annotated element.public abstract void setValue(Object pojo, Object value) throws UnsupportedOperationException, IllegalArgumentException
This is implemented for fiedlds and single-argument methods; but not for constructor parameters or other types of methods.
UnsupportedOperationException
IllegalArgumentException