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 java.lang.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
Fields Modifier and Type Field Description private java.util.List<MethodAttributeAppender>
methodAttributeAppenders
The method attribute appenders this compound appender represents in their application order.
-
Constructor Summary
Constructors Constructor Description Compound(java.util.List<? extends MethodAttributeAppender> methodAttributeAppenders)
Creates a new compound method attribute appender.Compound(MethodAttributeAppender... methodAttributeAppender)
Creates a new compound method attribute appender.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(org.objectweb.asm.MethodVisitor methodVisitor, MethodDescription methodDescription, AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given method visitor.
-
-
-
Field Detail
-
methodAttributeAppenders
private final java.util.List<MethodAttributeAppender> methodAttributeAppenders
The method attribute appenders this compound appender represents in their application order.
-
-
Constructor Detail
-
Compound
public Compound(MethodAttributeAppender... methodAttributeAppender)
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
public Compound(java.util.List<? extends MethodAttributeAppender> methodAttributeAppenders)
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 Detail
-
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.
-
-