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
public final class ReflectionBeanPropertyMemberAccessor extends AbstractMemberAccessor
AMemberAccessor
based on a getter and optionally a setter.
-
-
Constructor Summary
Constructors Constructor Description ReflectionBeanPropertyMemberAccessor(Method getterMethod)
ReflectionBeanPropertyMemberAccessor(Method getterMethod, boolean getterOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
executeGetter(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<?>
getDeclaringClass()
Type
getGenericType()
As defined byMethod.getGenericReturnType()
andField.getGenericType()
.String
getName()
String
getSpeedNote()
Class<?>
getType()
boolean
supportSetter()
String
toString()
-
Methods inherited from class org.optaplanner.core.impl.domain.common.accessor.AbstractMemberAccessor
getGetterFunction
-
-
-
-
Method Detail
-
getDeclaringClass
public Class<?> getDeclaringClass()
-
getName
public String getName()
-
getType
public Class<?> getType()
-
getGenericType
public Type getGenericType()
Description copied from interface:MemberAccessor
As defined byMethod.getGenericReturnType()
andField.getGenericType()
.- Returns:
- never null
-
supportSetter
public boolean supportSetter()
-
getSpeedNote
public String getSpeedNote()
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
Description copied from interface:MemberAccessor
As defined inAnnotatedElement.getAnnotation(Class)
.
-
getDeclaredAnnotationsByType
public <T extends Annotation> T[] getDeclaredAnnotationsByType(Class<T> annotationClass)
-
-