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