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 java.lang.Object implements MemberSubstitution.Substitution.Chain.Step.Factory
A factory for creating a field read step in a chain.
-
-
Field Summary
Fields Modifier and Type Field Description private FieldDescription
fieldDescription
A description of the field being read.
-
Constructor Summary
Constructors Constructor Description Factory(java.lang.reflect.Field field)
Creates a factory for a step reading a field.Factory(FieldDescription fieldDescription)
Creates a factory for a step reading a field.
-
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
-
fieldDescription
private final FieldDescription fieldDescription
A description of the field being read.
-
-
Constructor Detail
-
Factory
public Factory(java.lang.reflect.Field field)
Creates a factory for a step reading a field.- Parameters:
field
- The field being read.
-
Factory
public Factory(FieldDescription fieldDescription)
Creates a factory for a step reading a field.- Parameters:
fieldDescription
- A description of the field being read.
-
-
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.
-
-