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 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()
.<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.String
getName()
String
getSpeedNote()
Class<?>
getType()
boolean
supportSetter()
-
-
-
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)
.
-
-