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.
-
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
FieldsModifier and TypeFieldDescriptionprivate final List
<FieldAttributeAppender> The field attribute appenders this appender represents in their application order. -
Constructor Summary
ConstructorsConstructorDescriptionCompound
(List<? extends FieldAttributeAppender> fieldAttributeAppenders) Creates a new compound field attribute appender.Compound
(FieldAttributeAppender... fieldAttributeAppender) Creates a new compound field attribute appender. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(org.objectweb.asm.FieldVisitor fieldVisitor, FieldDescription fieldDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given field visitor.
-
Field Details
-
fieldAttributeAppenders
The field attribute appenders this appender represents in their application order.
-
-
Constructor Details
-
Compound
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
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 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.
-