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 java.lang.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
Fields Modifier and Type Field Description private java.util.List<TypeAttributeAppender>
typeAttributeAppenders
The type attribute appenders this compound appender represents in their application order.
-
Constructor Summary
Constructors Constructor Description Compound(java.util.List<? extends TypeAttributeAppender> typeAttributeAppenders)
Creates a new compound attribute appender.Compound(TypeAttributeAppender... typeAttributeAppender)
Creates a new compound attribute 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
-
typeAttributeAppenders
private final java.util.List<TypeAttributeAppender> typeAttributeAppenders
The type attribute appenders this compound appender represents in their application order.
-
-
Constructor Detail
-
Compound
public Compound(TypeAttributeAppender... typeAttributeAppender)
Creates a new compound attribute appender.- Parameters:
typeAttributeAppender
- The type attribute appenders to concatenate in the order of their application.
-
Compound
public Compound(java.util.List<? extends TypeAttributeAppender> typeAttributeAppenders)
Creates a new compound attribute appender.- Parameters:
typeAttributeAppenders
- The type attribute appenders to concatenate in the order of their application.
-
-
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.
-
-