Class MethodAttributeAppender.Compound
java.lang.Object
net.bytebuddy.implementation.attribute.MethodAttributeAppender.Compound
- All Implemented Interfaces:
MethodAttributeAppender
- Enclosing interface:
- MethodAttributeAppender
@Enhance
public static class MethodAttributeAppender.Compound
extends Object
implements MethodAttributeAppender
A method attribute appender that combines several method attribute appenders to be represented as a single
method attribute appender.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.attribute.MethodAttributeAppender
MethodAttributeAppender.Compound, MethodAttributeAppender.Explicit, MethodAttributeAppender.Factory, MethodAttributeAppender.ForInstrumentedMethod, MethodAttributeAppender.ForReceiverType, MethodAttributeAppender.NoOp
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<MethodAttributeAppender>
The method attribute appenders this compound appender represents in their application order. -
Constructor Summary
ConstructorsConstructorDescriptionCompound
(List<? extends MethodAttributeAppender> methodAttributeAppenders) Creates a new compound method attribute appender.Compound
(MethodAttributeAppender... methodAttributeAppender) Creates a new compound method attribute appender. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given method visitor.
-
Field Details
-
methodAttributeAppenders
The method attribute appenders this compound appender represents in their application order.
-
-
Constructor Details
-
Compound
Creates a new compound method attribute appender.- Parameters:
methodAttributeAppender
- The method attribute appenders that are to be combined by this compound appender in the order of their application.
-
Compound
Creates a new compound method attribute appender.- Parameters:
methodAttributeAppenders
- The method attribute appenders that are to be combined by this compound appender in the order of their application.
-
-
Method Details
-
apply
public void apply(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given method visitor.- Specified by:
apply
in interfaceMethodAttributeAppender
- Parameters:
methodVisitor
- The method visitor to which the attributes that are represented by this attribute appender are written to.methodDescription
- The description of the method for which the given method visitor creates an instrumentation for.annotationValueFilter
- The annotation value filter to apply when the annotations are written.
-