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 java.lang.Object implements FieldAttributeAppender
A field attribute appender that combines several method attribute appenders to be represented as a single field attribute appender.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.attribute.FieldAttributeAppender
FieldAttributeAppender.Compound, FieldAttributeAppender.Explicit, FieldAttributeAppender.Factory, FieldAttributeAppender.ForInstrumentedField, FieldAttributeAppender.NoOp
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<FieldAttributeAppender>
fieldAttributeAppenders
The field attribute appenders this appender represents in their application order.
-
Constructor Summary
Constructors Constructor Description Compound(java.util.List<? extends FieldAttributeAppender> fieldAttributeAppenders)
Creates a new compound field attribute appender.Compound(FieldAttributeAppender... fieldAttributeAppender)
Creates a new compound field attribute appender.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(org.objectweb.asm.FieldVisitor fieldVisitor, FieldDescription fieldDescription, AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given field visitor.
-
-
-
Field Detail
-
fieldAttributeAppenders
private final java.util.List<FieldAttributeAppender> fieldAttributeAppenders
The field attribute appenders this appender represents in their application order.
-
-
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)
Applies this attribute appender to a given field visitor.- Specified by:
apply
in interfaceFieldAttributeAppender
- 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.
-
-