Interface AnnotationValueFilter
- All Known Implementing Classes:
AnnotationValueFilter.Default
public interface AnnotationValueFilter
An annotation value filter is responsible for determining which values should be skipped and rather be represented as an
annotation type's default values when writing an annotation to a class file.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
A default implementation of an annotation value filter that applies the same strategy for any type, field or method.static interface
A factory for creating an annotation value filter for an annotation's target. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isRelevant
(AnnotationDescription annotationDescription, MethodDescription.InDefinedShape methodDescription) Checks if the given annotation value should be written as the value of the provided annotation property.
-
Method Details
-
isRelevant
boolean isRelevant(AnnotationDescription annotationDescription, MethodDescription.InDefinedShape methodDescription) Checks if the given annotation value should be written as the value of the provided annotation property.- Parameters:
annotationDescription
- The annotation value that is being written.methodDescription
- The annotation method of which a value is being written.- Returns:
true
if the value should be written to the annotation.
-