Class AnnotationRemoval.AnnotationRemovingFieldVisitor

  • Enclosing class:
    AnnotationRemoval

    private static class AnnotationRemoval.AnnotationRemovingFieldVisitor
    extends org.objectweb.asm.FieldVisitor
    A field visitor that removes annotations.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.objectweb.asm.AnnotationVisitor visitAnnotation​(java.lang.String descriptor, boolean visible)  
      • Methods inherited from class org.objectweb.asm.FieldVisitor

        getDelegate, visitAttribute, visitEnd, visitTypeAnnotation
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • annotations

        private final java.util.Map<java.lang.String,​AnnotationDescription> annotations
        A map of annotation type descriptors names and descriptors to consider for removal.
    • Constructor Detail

      • AnnotationRemovingFieldVisitor

        private AnnotationRemovingFieldVisitor​(org.objectweb.asm.FieldVisitor fieldVisitor,
                                               ElementMatcher<? super AnnotationDescription> annotationMatcher,
                                               java.util.Map<java.lang.String,​AnnotationDescription> annotations)
        Creates a visitor for removing annotations from fields.
        Parameters:
        fieldVisitor - The field visitor to delegate to.
        annotationMatcher - AMatches annotations that should be removed.
        annotations - A map of annotation type descriptors names and descriptors to consider for removal.
    • Method Detail

      • visitAnnotation

        @MaybeNull
        public org.objectweb.asm.AnnotationVisitor visitAnnotation​(java.lang.String descriptor,
                                                                   boolean visible)
        Overrides:
        visitAnnotation in class org.objectweb.asm.FieldVisitor