Class FieldAttributeAppender.Compound

  • All Implemented Interfaces:
    FieldAttributeAppender
    Enclosing interface:
    FieldAttributeAppender

    public static class FieldAttributeAppender.Compound
    extends java.lang.Object
    implements FieldAttributeAppender
    A field attribute appender that combines several method attribute appenders to be represented as a single field attribute appender.
    • Constructor Detail

      • 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​(java.util.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 Detail

      • apply

        public void apply​(org.objectweb.asm.FieldVisitor fieldVisitor,
                          FieldDescription fieldDescription,
                          AnnotationValueFilter annotationValueFilter)
        Description copied from interface: FieldAttributeAppender
        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.