Package net.bytebuddy.asm
Class AnnotationRemoval.AnnotationRemovingFieldVisitor
- java.lang.Object
-
- org.objectweb.asm.FieldVisitor
-
- net.bytebuddy.asm.AnnotationRemoval.AnnotationRemovingFieldVisitor
-
- Enclosing class:
- AnnotationRemoval
private static class AnnotationRemoval.AnnotationRemovingFieldVisitor extends org.objectweb.asm.FieldVisitor
A field visitor that removes annotations.
-
-
Field Summary
Fields Modifier and Type Field Description private ElementMatcher<? super AnnotationDescription>
annotationMatcher
Matches annotations that should be removed.private java.util.Map<java.lang.String,AnnotationDescription>
annotations
A map of annotation type descriptors names and descriptors to consider for removal.
-
Constructor Summary
Constructors Modifier Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.objectweb.asm.AnnotationVisitor
visitAnnotation(java.lang.String descriptor, boolean visible)
-
-
-
Field Detail
-
annotationMatcher
private final ElementMatcher<? super AnnotationDescription> annotationMatcher
Matches annotations that should be removed.
-
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 classorg.objectweb.asm.FieldVisitor
-
-