Class MemberSubstitution.Substitution.Chain.Step.ForAssignment.Factory
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForAssignment.Factory
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.Factory<MemberSubstitution.Target>
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForAssignment
@Enhance
protected static class MemberSubstitution.Substitution.Chain.Step.ForAssignment.Factory
extends Object
implements MemberSubstitution.Substitution.Chain.Step.Factory<MemberSubstitution.Target>
A factory for creating a step for a dynamic type assignment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeDescription.GenericThe result type ornullif the type of the substitution result should be targeted. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFactory(TypeDescription.Generic result) Creates a new factory for a step that applies a type assignment. -
Method Summary
Modifier and TypeMethodDescriptionmake(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.
-
Field Details
-
result
The result type ornullif the type of the substitution result should be targeted.
-
-
Constructor Details
-
Factory
Creates a new factory for a step that applies a type assignment.- Parameters:
result- The result type ornullif the type of the substitution result should be targeted.
-
-
Method Details
-
make
public MemberSubstitution.Substitution.Chain.Step<MemberSubstitution.Target> make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.- Specified by:
makein interfaceMemberSubstitution.Substitution.Chain.Step.Factory<MemberSubstitution.Target>- Parameters:
assigner- The assigner to use.typing- The typing to use.instrumentedType- The instrumented type.instrumentedMethod- The instrumented method.- Returns:
- The substitution step to apply.
-