@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.ForFieldAccess.OfGivenField extends Object implements MemberSubstitution.Substitution.Factory
| Constructor and Description |
|---|
OfGivenField(FieldDescription fieldDescription)
Creates a new factory that substitues with a given field.
|
| Modifier and Type | Method and Description |
|---|---|
MemberSubstitution.Substitution |
make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution for an instrumented method.
|
public OfGivenField(FieldDescription fieldDescription)
fieldDescription - The field to substitute with.public MemberSubstitution.Substitution make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
make in interface MemberSubstitution.Substitution.FactoryinstrumentedType - The instrumented type.instrumentedMethod - The instrumented method.typePool - The type pool being used.Copyright © 2014–2023. All rights reserved.