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<MemberSubstitution.Target>
- 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<MemberSubstitution.Target>
A factory for creating a step for a dynamic type assignment.
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription.GenericresultThe result type ornullif the type of the substitution result should be targeted.
-
Constructor Summary
Constructors Modifier Constructor Description protectedFactory(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<MemberSubstitution.Target>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 ornullif 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 ornullif the type of the substitution result should be targeted.
-
-
Method Detail
-
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.
-
-