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

    • typeAttributeAppenders

      private final List<TypeAttributeAppender> typeAttributeAppenders
      The type attribute appenders this compound appender represents in their application order.
  • Constructor Details

    • 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(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 Details

    • apply

      public void apply(org.objectweb.asm.ClassVisitor classVisitor, TypeDescription instrumentedType, AnnotationValueFilter annotationValueFilter)
      Applies this type attribute appender.
      Specified by:
      apply in interface TypeAttributeAppender
      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.