Class TypeAttributeAppender.Compound
java.lang.Object
net.bytebuddy.implementation.attribute.TypeAttributeAppender.Compound
- All Implemented Interfaces:
TypeAttributeAppender
- Enclosing interface:
TypeAttributeAppender
@Enhance
public static class TypeAttributeAppender.Compound
extends Object
implements TypeAttributeAppender
A compound type attribute appender that concatenates a number of other attribute appenders.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.attribute.TypeAttributeAppender
TypeAttributeAppender.Compound, TypeAttributeAppender.Explicit, TypeAttributeAppender.ForInstrumentedType, TypeAttributeAppender.NoOp -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<TypeAttributeAppender> The type attribute appenders this compound appender represents in their application order. -
Constructor Summary
ConstructorsConstructorDescriptionCompound(List<? extends TypeAttributeAppender> typeAttributeAppenders) Creates a new compound attribute appender.Compound(TypeAttributeAppender... typeAttributeAppender) Creates a new compound attribute appender. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter) Applies this type attribute appender.
-
Field Details
-
typeAttributeAppenders
The type attribute appenders this compound appender represents in their application order.
-
-
Constructor Details
-
Compound
Creates a new compound attribute appender.- Parameters:
typeAttributeAppender- The type attribute appenders to concatenate in the order of their application.
-
Compound
Creates a new compound attribute appender.- Parameters:
typeAttributeAppenders- The type attribute appenders to concatenate in the order of their application.
-
-
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.
-