@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.ForFieldAccess.OfMatchedField extends Object implements MemberSubstitution.Substitution.Factory
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 |
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 make(TypeDescription instrumentedType, MethodDescription instrumentedMethod, TypePool typePool)
make
in interface MemberSubstitution.Substitution.Factory
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.typePool
- The type pool being used.Copyright © 2014–2024. All rights reserved.