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 java.lang.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 Modifier and Type Field Description private TypeDescription
target
The repeated type.
-
Constructor Summary
Constructors Modifier Constructor Description protected
RepeatedAnnotationAppender(TypeDescription target)
Creates a new appender.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
-
-
-
Field Detail
-
target
private final TypeDescription target
The repeated type.
-
-
Constructor Detail
-
RepeatedAnnotationAppender
protected RepeatedAnnotationAppender(TypeDescription target)
Creates a new appender.- Parameters:
target
- The repeated type.
-
-
Method Detail
-
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.
-
-