Class ReflectionBeanPropertyMemberAccessor
java.lang.Object
org.optaplanner.core.impl.domain.common.accessor.AbstractMemberAccessor
org.optaplanner.core.impl.domain.common.accessor.ReflectionBeanPropertyMemberAccessor
- All Implemented Interfaces:
MemberAccessor
A
MemberAccessor
based on a getter and optionally a setter.-
Constructor Summary
ConstructorDescriptionReflectionBeanPropertyMemberAccessor
(Method getterMethod) ReflectionBeanPropertyMemberAccessor
(Method getterMethod, boolean getterOnly) -
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
-
ReflectionBeanPropertyMemberAccessor
-
ReflectionBeanPropertyMemberAccessor
-
-
Method Details
-
getDeclaringClass
-
getName
-
getType
-
getGenericType
Description copied from interface:MemberAccessor
As defined byMethod.getGenericReturnType()
andField.getGenericType()
.- Returns:
- never null
-
executeGetter
-
supportSetter
public boolean supportSetter() -
executeSetter
-
getSpeedNote
-
getAnnotation
Description copied from interface:MemberAccessor
As defined inAnnotatedElement.getAnnotation(Class)
. -
getDeclaredAnnotationsByType
-
toString
-