@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Chain.Step.ForField.Write.Factory extends Object implements MemberSubstitution.Substitution.Chain.Step.Factory
Constructor and Description |
---|
Factory(FieldDescription fieldDescription,
int index)
Creates a factory for writing to a field.
|
Factory(Field field,
int index)
Creates a factory for writing to a field.
|
Modifier and Type | Method and Description |
---|---|
MemberSubstitution.Substitution.Chain.Step |
make(Assigner assigner,
Assigner.Typing typing,
TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Creates a substitution step for an instrumented method.
|
public Factory(Field field, int index)
field
- The field to write to.index
- The index of the parameter being accessed. If the targeted element is a non-static method, is increased by one.public Factory(FieldDescription fieldDescription, int index)
fieldDescription
- A description of the field to write to.index
- The index of the parameter being accessed. If the targeted element is a non-static method, is increased by one.public MemberSubstitution.Substitution.Chain.Step make(Assigner assigner, Assigner.Typing typing, TypeDescription instrumentedType, MethodDescription instrumentedMethod)
make
in interface MemberSubstitution.Substitution.Chain.Step.Factory
assigner
- The assigner to use.typing
- The typing to use.instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.Copyright © 2014–2024. All rights reserved.