Class FieldAttributeAppender.Compound

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

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

    • fieldAttributeAppenders

      private final List<FieldAttributeAppender> fieldAttributeAppenders
      The field attribute appenders this appender represents in their application order.
  • Constructor Details

    • Compound

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

      public Compound(List<? extends FieldAttributeAppender> fieldAttributeAppenders)
      Creates a new compound field attribute appender.
      Parameters:
      fieldAttributeAppenders - The field 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.FieldVisitor fieldVisitor, FieldDescription fieldDescription, AnnotationValueFilter annotationValueFilter)
      Applies this attribute appender to a given field visitor.
      Specified by:
      apply in interface FieldAttributeAppender
      Parameters:
      fieldVisitor - The field visitor to which the attributes that are represented by this attribute appender are written to.
      fieldDescription - The description of the field to which the field visitor belongs to.
      annotationValueFilter - The annotation value filter to apply when writing annotations.