Class ReflectionMethodMemberAccessor
java.lang.Object
org.optaplanner.core.impl.domain.common.accessor.AbstractMemberAccessor
org.optaplanner.core.impl.domain.common.accessor.ReflectionMethodMemberAccessor
- All Implemented Interfaces:
MemberAccessor
A
MemberAccessor
based on a single read Method
.
Do not confuse with ReflectionBeanPropertyMemberAccessor
which is richer.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionexecuteGetter
(Object bean) void
executeSetter
(Object bean, Object value) <T extends Annotation>
TgetAnnotation
(Class<T> annotationClass) As defined inAnnotatedElement.getAnnotation(Class)
.<T extends Annotation>
T[]getDeclaredAnnotationsByType
(Class<T> annotationClass) Class<?>
As defined byMethod.getGenericReturnType()
andField.getGenericType()
.getName()
Class<?>
getType()
boolean
toString()
Methods inherited from class org.optaplanner.core.impl.domain.common.accessor.AbstractMemberAccessor
getGetterFunction
-
Constructor Details
-
ReflectionMethodMemberAccessor
-
-
Method Details
-
getDeclaringClass
-
getName
-
getType
-
getGenericType
Description copied from interface:MemberAccessor
As defined byMethod.getGenericReturnType()
andField.getGenericType()
.- Returns:
- never null
-
executeGetter
-
getSpeedNote
-
supportSetter
public boolean supportSetter() -
executeSetter
-
getAnnotation
Description copied from interface:MemberAccessor
As defined inAnnotatedElement.getAnnotation(Class)
. -
getDeclaredAnnotationsByType
-
toString
-