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
public final class ReflectionMethodMemberAccessor extends AbstractMemberAccessor
AMemberAccessor
based on a single readMethod
. Do not confuse withReflectionBeanPropertyMemberAccessor
which is richer.
-
-
Constructor Summary
Constructors Constructor Description ReflectionMethodMemberAccessor(Method readMethod)
-
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)
.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
-
-
-
-
Constructor Detail
-
ReflectionMethodMemberAccessor
public ReflectionMethodMemberAccessor(Method readMethod)
-
-
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
-
getSpeedNote
public String getSpeedNote()
-
supportSetter
public boolean supportSetter()
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
Description copied from interface:MemberAccessor
As defined inAnnotatedElement.getAnnotation(Class)
.
-
-