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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface RecordComponentAttributeAppender
RecordComponentAttributeAppender.Compound, RecordComponentAttributeAppender.Explicit, RecordComponentAttributeAppender.Factory, RecordComponentAttributeAppender.ForInstrumentedRecordComponent, RecordComponentAttributeAppender.NoOp -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<RecordComponentAttributeAppender> The record component attribute appenders this appender represents in their application order. -
Constructor Summary
ConstructorsConstructorDescriptionCompound(List<? extends RecordComponentAttributeAppender> recordComponentAttributeAppenders) Creates a new compound record component attribute appender.Compound(RecordComponentAttributeAppender... recordComponentAttributeAppender) Creates a new compound record component attribute appender. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor, RecordComponentDescription recordComponentDescription, AnnotationValueFilter annotationValueFilter) Applies this attribute appender to a given record component visitor.
-
Field Details
-
recordComponentAttributeAppenders
The record component attribute appenders this appender represents in their application order.
-
-
Constructor Details
-
Compound
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
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:
applyin interfaceRecordComponentAttributeAppender- 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.
-