Class ReflectionMethodExtendedMemberAccessor
java.lang.Object
ai.timefold.solver.core.impl.domain.common.accessor.AbstractMemberAccessor
ai.timefold.solver.core.impl.domain.common.accessor.ReflectionMethodMemberAccessor
ai.timefold.solver.core.impl.domain.common.accessor.ReflectionMethodExtendedMemberAccessor
- All Implemented Interfaces:
MemberAccessor
-
Constructor Summary
ConstructorsConstructorDescriptionReflectionMethodExtendedMemberAccessor(Method readMethod) ReflectionMethodExtendedMemberAccessor(Method readMethod, boolean returnTypeRequired) -
Method Summary
Modifier and TypeMethodDescriptionexecuteGetter(Object bean) executeGetter(Object bean, Object value) Differs fromMemberAccessor.executeGetter(Object)in that it accepts a single parameter.<Fact_,Result_>
Function<Fact_,Result_> In order to support node sharing in constraint streams, we need to referenceMemberAccessor.executeGetter(Object)in a way so that the method reference stays the same instance.Methods inherited from class ai.timefold.solver.core.impl.domain.common.accessor.ReflectionMethodMemberAccessor
executeSetter, getAnnotation, getDeclaredAnnotationsByType, getDeclaringClass, getGenericType, getName, getSpeedNote, getType, supportSetter, toStringMethods 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
-
ReflectionMethodExtendedMemberAccessor
-
ReflectionMethodExtendedMemberAccessor
-
-
Method Details
-
executeGetter
- Specified by:
executeGetterin interfaceMemberAccessor- Overrides:
executeGetterin classReflectionMethodMemberAccessor
-
getGetterFunction
Description copied from interface:MemberAccessorIn order to support node sharing in constraint streams, we need to referenceMemberAccessor.executeGetter(Object)in a way so that the method reference stays the same instance. This method returns just such a method reference.- Specified by:
getGetterFunctionin interfaceMemberAccessor- Overrides:
getGetterFunctionin classAbstractMemberAccessor- Returns:
- never null, a constant reference to
MemberAccessor.executeGetter(Object)
-
getGetterMethodParameterType
- Specified by:
getGetterMethodParameterTypein interfaceMemberAccessor- Overrides:
getGetterMethodParameterTypein classAbstractMemberAccessor- Returns:
- returns the parameter type if the getter accepts a parameter, or null otherwise.
-
executeGetter
Description copied from interface:MemberAccessorDiffers fromMemberAccessor.executeGetter(Object)in that it accepts a single parameter.- Specified by:
executeGetterin interfaceMemberAccessor- Overrides:
executeGetterin classAbstractMemberAccessor
-