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 java.lang.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 net.bytebuddy.implementation.attribute.RecordComponentAttributeAppender
RecordComponentAttributeAppender.Compound, RecordComponentAttributeAppender.Explicit, RecordComponentAttributeAppender.Factory, RecordComponentAttributeAppender.ForInstrumentedRecordComponent, RecordComponentAttributeAppender.NoOp
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<RecordComponentAttributeAppender>
recordComponentAttributeAppenders
The record component attribute appenders this appender represents in their application order.
-
Constructor Summary
Constructors Constructor Description Compound(java.util.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor, RecordComponentDescription recordComponentDescription, AnnotationValueFilter annotationValueFilter)
Applies this attribute appender to a given record component visitor.
-
-
-
Field Detail
-
recordComponentAttributeAppenders
private final java.util.List<RecordComponentAttributeAppender> recordComponentAttributeAppenders
The record component attribute appenders this appender represents in their application order.
-
-
Constructor Detail
-
Compound
public Compound(RecordComponentAttributeAppender... recordComponentAttributeAppender)
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
public Compound(java.util.List<? extends RecordComponentAttributeAppender> recordComponentAttributeAppenders)
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 Detail
-
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:
apply
in 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.
-
-