java.lang.Object
nl.jqno.equalsverifier.internal.reflection.annotations.AnnotationCacheBuilder

public class AnnotationCacheBuilder extends Object
  • Field Details

    • supportedAnnotations

      private final List<Annotation> supportedAnnotations
    • partialAnnotationNames

      private final List<String> partialAnnotationNames
    • ignoredAnnotations

      private final Set<String> ignoredAnnotations
  • Constructor Details

    • AnnotationCacheBuilder

      public AnnotationCacheBuilder(Annotation[] supportedAnnotations, Set<String> ignoredAnnotations)
  • Method Details

    • build

      public void build(Class<?> type, AnnotationCache cache)
    • visitType

      private void visitType(Set<Class<?>> types, AnnotationCache cache, net.bytebuddy.description.type.TypeDescription typeDescription, boolean inheriting)
    • visitSuperclasses

      private void visitSuperclasses(Class<?> type, AnnotationCache cache, net.bytebuddy.pool.TypePool pool)
    • visitOuterClasses

      private void visitOuterClasses(Class<?> type, AnnotationCache cache, net.bytebuddy.pool.TypePool pool)
    • visitPackage

      private void visitPackage(Class<?> type, AnnotationCache cache, net.bytebuddy.pool.TypePool pool)
    • visitClass

      private void visitClass(Set<Class<?>> types, AnnotationCache cache, net.bytebuddy.description.type.TypeDescription typeDescription, boolean inheriting)
    • visitFields

      private void visitFields(Set<Class<?>> types, AnnotationCache cache, net.bytebuddy.description.type.TypeDescription typeDescription, boolean inheriting)
    • cacheSupportedAnnotations

      private void cacheSupportedAnnotations(net.bytebuddy.description.annotation.AnnotationDescription annotation, Set<Class<?>> types, AnnotationCache cache, Consumer<Annotation> addToCache, boolean inheriting)
    • matches

      private boolean matches(net.bytebuddy.description.annotation.AnnotationDescription foundAnnotation)
    • matches

      private boolean matches(net.bytebuddy.description.annotation.AnnotationDescription foundAnnotation, Annotation supportedAnnotation)
    • buildAnnotationProperties

      private AnnotationProperties buildAnnotationProperties(net.bytebuddy.description.annotation.AnnotationDescription annotation)
    • addEnumProperties

      private void addEnumProperties(Object val, String name, AnnotationProperties props)
    • addArrayProperties

      private void addArrayProperties(Object val, String name, AnnotationProperties props)