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.
    • 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:
        true if the value should be written to the annotation.