Package net.bytebuddy.asm
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
- 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
A factory for creating a step for a dynamic type assignment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeDescription.Generic
The result type ornull
if the type of the substitution result should be targeted. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Factory
(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 ornull
if 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 ornull
if the type of the substitution result should be targeted.
-
-
Method Details
-
make
public MemberSubstitution.Substitution.Chain.Step make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.- Specified by:
make
in interfaceMemberSubstitution.Substitution.Chain.Step.Factory
- 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.
-