Class RecordComponentAttributeAppender.Compound

java.lang.Object
net.bytebuddy.implementation.attribute.RecordComponentAttributeAppender.Compound
All Implemented Interfaces:
RecordComponentAttributeAppender
Enclosing interface:
RecordComponentAttributeAppender

@Enhance public static class RecordComponentAttributeAppender.Compound extends Object implements RecordComponentAttributeAppender
A record component attribute appender that combines several method attribute appenders to be represented as a single record component attribute appender.
  • Field Details

    • recordComponentAttributeAppenders

      private final List<RecordComponentAttributeAppender> recordComponentAttributeAppenders
      The record component attribute appenders this appender represents in their application order.
  • Constructor Details

    • Compound

      public Compound(RecordComponentAttributeAppender... recordComponentAttributeAppender)
      Creates a new compound record component attribute appender.
      Parameters:
      recordComponentAttributeAppender - The record component attribute appenders that are to be combined by this compound appender in the order of their application.
    • Compound

      public Compound(List<? extends RecordComponentAttributeAppender> recordComponentAttributeAppenders)
      Creates a new compound record component attribute appender.
      Parameters:
      recordComponentAttributeAppenders - The record component 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.RecordComponentVisitor recordComponentVisitor, RecordComponentDescription recordComponentDescription, AnnotationValueFilter annotationValueFilter)
      Applies this attribute appender to a given record component visitor.
      Specified by:
      apply in interface RecordComponentAttributeAppender
      Parameters:
      recordComponentVisitor - The record component visitor to which the attributes that are represented by this attribute appender are written to.
      recordComponentDescription - The description of the record component to which the record component visitor belongs to.
      annotationValueFilter - The annotation value filter to apply when writing annotations.