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