Interface TypeAttributeAppender
-
- All Known Implementing Classes:
TypeAttributeAppender.Compound
,TypeAttributeAppender.Explicit
,TypeAttributeAppender.ForInstrumentedType
,TypeAttributeAppender.ForInstrumentedType.Differentiating
,TypeAttributeAppender.NoOp
public interface TypeAttributeAppender
An appender that writes attributes or annotations to a given ASMClassVisitor
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TypeAttributeAppender.Compound
A compound type attribute appender that concatenates a number of other attribute appenders.static class
TypeAttributeAppender.Explicit
An attribute appender that appends a single annotation to a given type.static class
TypeAttributeAppender.ForInstrumentedType
An 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 class
TypeAttributeAppender.NoOp
A type attribute appender that does not append any attributes.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
apply(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter)
Applies this type attribute appender.
-
-
-
Method Detail
-
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.
-
-