Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Chain.Step.ForField.Read.Factory
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForField.Read.Factory
- All Implemented Interfaces:
MemberSubstitution.Substitution.Chain.Step.Factory
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForField.Read
@Enhance
public static class MemberSubstitution.Substitution.Chain.Step.ForField.Read.Factory
extends Object
implements MemberSubstitution.Substitution.Chain.Step.Factory
A factory for creating a field read step in a chain.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FieldDescription
A description of the field being read. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a factory for a step reading a field.Factory
(FieldDescription fieldDescription) Creates a factory for a step reading a field. -
Method Summary
Modifier and TypeMethodDescriptionmake
(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod) Creates a substitution step for an instrumented method.
-
Field Details
-
fieldDescription
A description of the field being read.
-
-
Constructor Details
-
Factory
Creates a factory for a step reading a field.- Parameters:
field
- The field being read.
-
Factory
Creates a factory for a step reading a field.- Parameters:
fieldDescription
- A description of the field being read.
-
-
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.
-