Class MemberSubstitution.Replacement.Factory.Compound
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Replacement.Factory.Compound
- All Implemented Interfaces:
MemberSubstitution.Replacement.Factory
- Enclosing interface:
MemberSubstitution.Replacement.Factory
@Enhance
public static class MemberSubstitution.Replacement.Factory.Compound
extends Object
implements MemberSubstitution.Replacement.Factory
A compound factory.
-
Nested Class Summary
Nested classes/interfaces inherited from interface MemberSubstitution.Replacement.Factory
MemberSubstitution.Replacement.Factory.Compound -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<MemberSubstitution.Replacement.Factory> A list of represented factories. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompound(List<? extends MemberSubstitution.Replacement.Factory> factories) Creates a new compound factory.protectedCompound(MemberSubstitution.Replacement.Factory... factory) Creates a new compound factory. -
Method Summary
Modifier and TypeMethodDescriptionmake(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.
-
Field Details
-
factories
A list of represented factories.
-
-
Constructor Details
-
Compound
Creates a new compound factory.- Parameters:
factory- A list of represented factories.
-
Compound
Creates a new compound factory.- Parameters:
factories- A list of represented factories.
-
-
Method Details
-
make
public MemberSubstitution.Replacement make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool) Creates a replacement for an instrumented method.- Specified by:
makein interfaceMemberSubstitution.Replacement.Factory- Parameters:
instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.typePool- The type pool being used within the member substitution being applied.- Returns:
- A replacement to use within the supplied instrumented method.
-