Package net.bytebuddy.build
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 net.bytebuddy.implementation.attribute.TypeAttributeAppender
TypeAttributeAppender.Compound, TypeAttributeAppender.Explicit, TypeAttributeAppender.ForInstrumentedType, TypeAttributeAppender.NoOp
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new appender. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(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:
apply
in 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.
-