@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(TypeDescription receiver,
ByteCodeElement.Member original,
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(TypeDescription receiver, ByteCodeElement.Member original, TypeList.Generic parameters, TypeDescription.Generic result)
resolve
in interface MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
receiver
- The target type on which a member is accessed.original
- The target field, method or constructor that is substituted,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–2024. All rights reserved.