Class AnnotationRemoval.AnnotationRemovingMethodVisitor

java.lang.Object
org.objectweb.asm.MethodVisitor
net.bytebuddy.asm.AnnotationRemoval.AnnotationRemovingMethodVisitor
Enclosing class:
AnnotationRemoval

private static class AnnotationRemoval.AnnotationRemovingMethodVisitor extends org.objectweb.asm.MethodVisitor
Creates a visitor for removing annotations from methods and method parameters.
  • Field Details

  • Constructor Details

    • AnnotationRemovingMethodVisitor

      private AnnotationRemovingMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor, ElementMatcher<? super AnnotationDescription> annotationMatcher, Map<Integer,Map<String,AnnotationDescription>> parameterAnnotations, Map<String,AnnotationDescription> annotations)
      Creates an annotation removing method visitor.
      Parameters:
      methodVisitor - The method visitor to delegate to.
      annotationMatcher - Matches annotations that should be removed.
      parameterAnnotations - A map of parameter indices to maps of annotation type descriptors names and descriptors to consider for removal.
      annotations - A map of annotation type descriptors names and descriptors to consider for removal.
  • Method Details

    • visitParameterAnnotation

      @MaybeNull public org.objectweb.asm.AnnotationVisitor visitParameterAnnotation(int parameter, String descriptor, boolean visible)
      Overrides:
      visitParameterAnnotation in class org.objectweb.asm.MethodVisitor
    • visitAnnotation

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