@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.ForFieldAccess.OfMatchedField extends Object implements MemberSubstitution.Substitution.Factory<MemberSubstitution.Target>
| Constructor and Description |
|---|
OfMatchedField(ElementMatcher<? super FieldDescription> matcher)
Creates a new substitution factory that locates a field by applying a matcher on the receiver type.
|
| Modifier and Type | Method and Description |
|---|---|
MemberSubstitution.Substitution<MemberSubstitution.Target> |
make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution for an instrumented method.
|
public OfMatchedField(ElementMatcher<? super FieldDescription> matcher)
matcher - The matcher to apply.public MemberSubstitution.Substitution<MemberSubstitution.Target> make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
make in interface MemberSubstitution.Substitution.Factory<MemberSubstitution.Target>instrumentedType - The instrumented type.instrumentedMethod - The instrumented method.typePool - The type pool being used.Copyright © 2014–2025. All rights reserved.