public final class ReflectionFieldMemberAccessor extends Object implements MemberAccessor
MemberAccessor
based on a field.Constructor and Description |
---|
ReflectionFieldMemberAccessor(Field field) |
Modifier and Type | Method and Description |
---|---|
Object |
executeGetter(Object bean) |
void |
executeSetter(Object bean,
Object value) |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
Class<?> |
getDeclaringClass() |
Type |
getGenericType()
As defined by
Method.getGenericReturnType() and Field.getGenericType() . |
String |
getName() |
String |
getSpeedNote() |
Class<?> |
getType() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
boolean |
supportSetter() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
public ReflectionFieldMemberAccessor(Field field)
public Class<?> getDeclaringClass()
getDeclaringClass
in interface MemberAccessor
public String getName()
getName
in interface MemberAccessor
public Class<?> getType()
getType
in interface MemberAccessor
public Type getGenericType()
MemberAccessor
Method.getGenericReturnType()
and Field.getGenericType()
.getGenericType
in interface MemberAccessor
public Object executeGetter(Object bean)
executeGetter
in interface MemberAccessor
public boolean supportSetter()
supportSetter
in interface MemberAccessor
public void executeSetter(Object bean, Object value)
executeSetter
in interface MemberAccessor
public String getSpeedNote()
getSpeedNote
in interface MemberAccessor
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent
in interface AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.