Class RecordComponentAttributeAppender.Factory.Compound
- java.lang.Object
-
- net.bytebuddy.implementation.attribute.RecordComponentAttributeAppender.Factory.Compound
-
- All Implemented Interfaces:
RecordComponentAttributeAppender.Factory
- Enclosing interface:
- RecordComponentAttributeAppender.Factory
@Enhance public static class RecordComponentAttributeAppender.Factory.Compound extends java.lang.Object implements RecordComponentAttributeAppender.Factory
A record component attribute appender factory that combines several record component attribute appender factories to be represented as a single factory.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.attribute.RecordComponentAttributeAppender.Factory
RecordComponentAttributeAppender.Factory.Compound
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<RecordComponentAttributeAppender.Factory>
factories
The factories that this compound factory represents in their application order.
-
Constructor Summary
Constructors Constructor Description Compound(java.util.List<? extends RecordComponentAttributeAppender.Factory> factories)
Creates a new compound record component attribute appender factory.Compound(RecordComponentAttributeAppender.Factory... factory)
Creates a new compound record component attribute appender factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordComponentAttributeAppender
make(TypeDescription typeDescription)
Returns a record component attribute appender that is applicable for a given type description.
-
-
-
Field Detail
-
factories
private final java.util.List<RecordComponentAttributeAppender.Factory> factories
The factories that this compound factory represents in their application order.
-
-
Constructor Detail
-
Compound
public Compound(RecordComponentAttributeAppender.Factory... factory)
Creates a new compound record component attribute appender factory.- Parameters:
factory
- The factories to represent in the order of their application.
-
Compound
public Compound(java.util.List<? extends RecordComponentAttributeAppender.Factory> factories)
Creates a new compound record component attribute appender factory.- Parameters:
factories
- The factories to represent in the order of their application.
-
-
Method Detail
-
make
public RecordComponentAttributeAppender make(TypeDescription typeDescription)
Returns a record component attribute appender that is applicable for a given type description.- Specified by:
make
in interfaceRecordComponentAttributeAppender.Factory
- Parameters:
typeDescription
- The type for which a record component attribute appender is to be applied for.- Returns:
- The record component attribute appender which should be applied for the given type.
-
-