Interface TypeAttributeAppender
- All Known Implementing Classes:
RepeatedAnnotationPlugin.RepeatedAnnotationAppender, TypeAttributeAppender.Compound, TypeAttributeAppender.Explicit, TypeAttributeAppender.ForInstrumentedType, TypeAttributeAppender.ForInstrumentedType.Differentiating, TypeAttributeAppender.NoOp
public interface TypeAttributeAppender
An appender that writes attributes or annotations to a given ASM
ClassVisitor.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA compound type attribute appender that concatenates a number of other attribute appenders.static classAn attribute appender that appends a single annotation to a given type.static enumAn attribute appender that writes all annotations that are found on a given target type to the instrumented type this type attribute appender is applied onto.static enumA type attribute appender that does not append any attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.
-
Method Details
-
apply
void apply(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.- 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.
-