Interface MemberAccessor
- All Known Implementing Classes:
AbstractGizmoMemberAccessor,AbstractMemberAccessor,AbstractReadOnlyGizmoMemberAccessor,AbstractReadWriteGizmoMemberAccessor,LambdaBeanPropertyMemberAccessor,ReflectionBeanPropertyMemberAccessor,ReflectionFieldMemberAccessor,ReflectionMethodMemberAccessor
public interface MemberAccessor
-
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().<Fact_,Result_>
Function<Fact_,Result_> In order to support node sharing in constraint streams, we need to referenceexecuteGetter(Object)in a way so that the method reference stays the same instance.getName()Class<?>getType()boolean
-
Method Details
-
getDeclaringClass
Class<?> getDeclaringClass() -
getName
String getName() -
getType
Class<?> getType() -
getGenericType
Type getGenericType()As defined byMethod.getGenericReturnType()andField.getGenericType().- Returns:
- never null
-
executeGetter
-
getGetterFunction
In order to support node sharing in constraint streams, we need to referenceexecuteGetter(Object)in a way so that the method reference stays the same instance. This method returns just such a method reference.- Type Parameters:
Result_-- Returns:
- never null, a constant reference to
executeGetter(Object)
-
supportSetter
boolean supportSetter() -
executeSetter
-
getSpeedNote
String getSpeedNote() -
getAnnotation
As defined inAnnotatedElement.getAnnotation(Class). -
getDeclaredAnnotationsByType
-