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