Class RepeatedAnnotationPlugin.RepeatedAnnotationAppender
java.lang.Object
net.bytebuddy.build.RepeatedAnnotationPlugin.RepeatedAnnotationAppender
- All Implemented Interfaces:
TypeAttributeAppender
- Enclosing class:
RepeatedAnnotationPlugin
@Enhance
protected static class RepeatedAnnotationPlugin.RepeatedAnnotationAppender
extends Object
implements TypeAttributeAppender
A type attribute appender that adds a repeated annotation for a target type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface TypeAttributeAppender
TypeAttributeAppender.Compound, TypeAttributeAppender.Explicit, TypeAttributeAppender.ForInstrumentedType, TypeAttributeAppender.NoOp -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new appender. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.
-
Field Details
-
target
The repeated type.
-
-
Constructor Details
-
RepeatedAnnotationAppender
Creates a new appender.- Parameters:
target- The repeated type.
-
-
Method Details
-
apply
public void apply(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.- Specified by:
applyin interfaceTypeAttributeAppender- Parameters:
classVisitor- The class visitor to which the annotations of this visitor should be written to.instrumentedType- A description of the instrumented type that is target of the ongoing instrumentation.annotationValueFilter- The annotation value filter to apply when writing annotations.
-