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 java.lang.Object implements MemberSubstitution.Substitution.Chain.Step.Factory
A factory for creating a step for a dynamic type assignment.
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription.Generic
result
The result type ornull
if the type of the substitution result should be targeted.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Factory(TypeDescription.Generic result)
Creates a new factory for a step that applies a type assignment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberSubstitution.Substitution.Chain.Step
make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.
-
-
-
Field Detail
-
result
@MaybeNull @ValueHandling(REVERSE_NULLABILITY) private final TypeDescription.Generic result
The result type ornull
if the type of the substitution result should be targeted.
-
-
Constructor Detail
-
Factory
protected Factory(@MaybeNull TypeDescription.Generic result)
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 Detail
-
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.
-
-