Interface MemberAccessor
-
- All Known Implementing Classes:
AbstractGizmoMemberAccessor,AbstractMemberAccessor,AbstractReadOnlyGizmoMemberAccessor,AbstractReadWriteGizmoMemberAccessor,LambdaBeanPropertyMemberAccessor,ReflectionBeanPropertyMemberAccessor,ReflectionFieldMemberAccessor,ReflectionMethodMemberAccessor
public interface MemberAccessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectexecuteGetter(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<?>getDeclaringClass()TypegetGenericType()As defined byMethod.getGenericReturnType()andField.getGenericType().<Fact_,Result_>
Function<Fact_,Result_>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.StringgetName()StringgetSpeedNote()Class<?>getType()booleansupportSetter()
-
-
-
Method Detail
-
getDeclaringClass
Class<?> getDeclaringClass()
-
getName
String getName()
-
getType
Class<?> getType()
-
getGenericType
Type getGenericType()
As defined byMethod.getGenericReturnType()andField.getGenericType().- Returns:
- never null
-
getGetterFunction
<Fact_,Result_> Function<Fact_,Result_> 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()
-
getSpeedNote
String getSpeedNote()
-
getAnnotation
<T extends Annotation> T getAnnotation(Class<T> annotationClass)
As defined inAnnotatedElement.getAnnotation(Class).
-
getDeclaredAnnotationsByType
<T extends Annotation> T[] getDeclaredAnnotationsByType(Class<T> annotationClass)
-
-