public final class ReflectionBeanPropertyMemberAccessor extends Object implements MemberAccessor
MemberAccessor based on a getter and optionally a setter.| Constructor and Description |
|---|
ReflectionBeanPropertyMemberAccessor(Method getterMethod) |
ReflectionBeanPropertyMemberAccessor(Method getterMethod,
boolean getterOnly) |
| 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, waitgetAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypepublic ReflectionBeanPropertyMemberAccessor(Method getterMethod)
public ReflectionBeanPropertyMemberAccessor(Method getterMethod, boolean getterOnly)
public Class<?> getDeclaringClass()
getDeclaringClass in interface MemberAccessorpublic String getName()
getName in interface MemberAccessorpublic Class<?> getType()
getType in interface MemberAccessorpublic Type getGenericType()
MemberAccessorMethod.getGenericReturnType() and Field.getGenericType().getGenericType in interface MemberAccessorpublic Object executeGetter(Object bean)
executeGetter in interface MemberAccessorpublic boolean supportSetter()
supportSetter in interface MemberAccessorpublic void executeSetter(Object bean, Object value)
executeSetter in interface MemberAccessorpublic String getSpeedNote()
getSpeedNote in interface MemberAccessorpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent in interface AnnotatedElementpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementCopyright © 2006–2019 JBoss by Red Hat. All rights reserved.