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
FieldsModifier and TypeFieldDescriptionprivate final ElementMatcher
<? super AnnotationDescription> Matches annotations that should be removed.private final Map
<String, AnnotationDescription> A map of annotation type descriptors names and descriptors to consider for removal.Fields inherited from class org.objectweb.asm.FieldVisitor
api, fv
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AnnotationRemovingFieldVisitor
(org.objectweb.asm.FieldVisitor fieldVisitor, ElementMatcher<? super AnnotationDescription> annotationMatcher, Map<String, AnnotationDescription> annotations) Creates a visitor for removing annotations from fields. -
Method Summary
Modifier and TypeMethodDescriptionorg.objectweb.asm.AnnotationVisitor
visitAnnotation
(String descriptor, boolean visible) Methods inherited from class org.objectweb.asm.FieldVisitor
getDelegate, visitAttribute, visitEnd, visitTypeAnnotation
-
Field Details
-
annotationMatcher
Matches annotations that should be removed. -
annotations
A map of annotation type descriptors names and descriptors to consider for removal.
-
-
Constructor Details
-
AnnotationRemovingFieldVisitor
private AnnotationRemovingFieldVisitor(org.objectweb.asm.FieldVisitor fieldVisitor, ElementMatcher<? super AnnotationDescription> annotationMatcher, Map<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 Details
-
visitAnnotation
@MaybeNull public org.objectweb.asm.AnnotationVisitor visitAnnotation(String descriptor, boolean visible) - Overrides:
visitAnnotation
in classorg.objectweb.asm.FieldVisitor
-