@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching extends Object implements MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching, MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple
Constructor and Description |
---|
Matching(TypeDescription instrumentedType,
MethodGraph.Compiler methodGraphCompiler,
ElementMatcher<? super MethodDescription> matcher)
Creates a new matching method resolver.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription |
resolve(MemberSubstitution.Target target,
TypeList.Generic parameters,
TypeDescription.Generic result)
Resolves the method to substitute with.
|
public Matching(TypeDescription instrumentedType, MethodGraph.Compiler methodGraphCompiler, ElementMatcher<? super MethodDescription> matcher)
instrumentedType
- The instrumented type.methodGraphCompiler
- The method graph compiler to use.matcher
- The matcher to use for locating the method to substitute with.public MethodDescription resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result)
resolve
in interface MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
target
- The target member of invokedynamic invocation.parameters
- All parameters that serve as input to this access.result
- The result that is expected from the interaction or void
if no result is expected.Copyright © 2014–2025. All rights reserved.