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.
  • Field Details

    • methodAttributeAppenders

      private final List<MethodAttributeAppender> methodAttributeAppenders
      The method attribute appenders this compound appender represents in their application order.
  • Constructor Details

    • 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(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 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 interface MethodAttributeAppender
      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.