Class PropertyAccessor
java.lang.Object
de.danielbechler.diff.introspection.PropertyAccessor
- All Implemented Interfaces:
Accessor,CategoryAware,ExclusionAware,PropertyAwareAccessor,TypeAwareAccessor
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyAccessor(String propertyName, Method readMethod, Method writeMethod) -
Method Summary
Modifier and TypeMethodDescription<T extends Annotation>
TgetFieldAnnotation(Class<T> annotationClass) <T extends Annotation>
TgetReadMethodAnnotation(Class<T> annotationClass) Class<?>getType()booleanvoidtoString()void
-
Constructor Details
-
PropertyAccessor
-
-
Method Details
-
getCategoriesFromAnnotation
- Specified by:
getCategoriesFromAnnotationin interfaceCategoryAware
-
isExcludedByAnnotation
public boolean isExcludedByAnnotation()- Specified by:
isExcludedByAnnotationin interfaceExclusionAware
-
getPropertyName
- Specified by:
getPropertyNamein interfacePropertyAwareAccessor
-
getFieldAnnotations
- Specified by:
getFieldAnnotationsin interfacePropertyAwareAccessor- Returns:
- The annotations of the field, or an empty set if there is no field with the name derived from the getter.
-
getFieldAnnotation
- Specified by:
getFieldAnnotationin interfacePropertyAwareAccessor- Returns:
- The given annotation of the field, or null if not annotated or if there is no field with the name derived from the getter.
-
getReadMethodAnnotations
- Specified by:
getReadMethodAnnotationsin interfacePropertyAwareAccessor- Returns:
- The annotations of the getter used to access this property.
-
getReadMethodAnnotation
- Specified by:
getReadMethodAnnotationin interfacePropertyAwareAccessor
-
getElementSelector
- Specified by:
getElementSelectorin interfaceAccessor
-
get
-
set
-
unset
-
getType
- Specified by:
getTypein interfaceTypeAwareAccessor
-
toString
-