Class ReflectionMethodMemberAccessor
java.lang.Object
ai.timefold.solver.core.impl.domain.common.accessor.AbstractMemberAccessor
ai.timefold.solver.core.impl.domain.common.accessor.ReflectionMethodMemberAccessor
- All Implemented Interfaces:
MemberAccessor
- Direct Known Subclasses:
ReflectionMethodExtendedMemberAccessor
public sealed class ReflectionMethodMemberAccessor
extends AbstractMemberAccessor
permits ReflectionMethodExtendedMemberAccessor
A
MemberAccessor based on a single read Method.
Do not confuse with ReflectionBeanPropertyMemberAccessor which is richer.-
Constructor Summary
ConstructorsConstructorDescriptionReflectionMethodMemberAccessor(Method readMethod) ReflectionMethodMemberAccessor(Method readMethod, boolean returnTypeRequired, boolean readMethodWithParameter) -
Method Summary
Modifier and TypeMethodDescriptionexecuteGetter(Object bean) voidexecuteSetter(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()booleantoString()Methods inherited from class ai.timefold.solver.core.impl.domain.common.accessor.AbstractMemberAccessor
executeGetter, getGetterFunction, getGetterMethodParameterTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ai.timefold.solver.core.impl.domain.common.accessor.MemberAccessor
acceptsParameter
-
Constructor Details
-
ReflectionMethodMemberAccessor
-
ReflectionMethodMemberAccessor
public ReflectionMethodMemberAccessor(Method readMethod, boolean returnTypeRequired, boolean readMethodWithParameter)
-
-
Method Details
-
getDeclaringClass
-
getName
-
getType
-
getGenericType
Description copied from interface:MemberAccessorAs defined byMethod.getGenericReturnType()andField.getGenericType().- Returns:
- never null
-
executeGetter
-
getSpeedNote
-
supportSetter
public boolean supportSetter() -
executeSetter
-
getAnnotation
Description copied from interface:MemberAccessorAs defined inAnnotatedElement.getAnnotation(Class). -
getDeclaredAnnotationsByType
-
toString
-