Interface AnnotationValueFilter
-
- All Known Implementing Classes:
AnnotationValueFilter.Default
public interface AnnotationValueFilterAn 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 Classes Modifier and Type Interface Description static classAnnotationValueFilter.DefaultA default implementation of an annotation value filter that applies the same strategy for any type, field or method.static interfaceAnnotationValueFilter.FactoryA factory for creating an annotation value filter for an annotation's target.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisRelevant(AnnotationDescription annotationDescription, MethodDescription.InDefinedShape methodDescription)Checks if the given annotation value should be written as the value of the provided annotation property.
-
-
-
Method Detail
-
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:
trueif the value should be written to the annotation.
-
-