Class AnnotationFilter.Builder

  • Enclosing class:
    AnnotationFilter

    public static class AnnotationFilter.Builder
    extends Object
    Builder for AnnotationFilter instances.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • annotationType

        public AnnotationFilter.Builder annotationType​(String annotationType)
        Sets the annotation type descriptor to match.
        Parameters:
        annotationType - the annotation type descriptor
        Returns:
        this builder
      • matchPresent

        public AnnotationFilter.Builder matchPresent​(boolean matchPresent)
        Sets whether the filter matches on annotation presence or absence.
        Parameters:
        matchPresent - true to match when the annotation is present, false when absent
        Returns:
        this builder
      • checkClass

        public AnnotationFilter.Builder checkClass​(boolean checkClass)
        Sets whether class annotations are checked.
        Parameters:
        checkClass - true to check class annotations
        Returns:
        this builder
      • checkMethod

        public AnnotationFilter.Builder checkMethod​(boolean checkMethod)
        Sets whether method annotations are checked.
        Parameters:
        checkMethod - true to check method annotations
        Returns:
        this builder
      • build

        public AnnotationFilter build()
        Builds the filter.
        Returns:
        the built AnnotationFilter