Interface MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
- All Known Implementing Classes:
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching, MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple
- Enclosing class:
MemberSubstitution.Substitution.ForMethodInvocation
public static interface MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
A method resolver for locating a method for a substitute.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA method resolver that locates a non-static method by locating it from the receiver type.static classA simple method resolver that returns a given method. -
Method Summary
Modifier and TypeMethodDescriptionresolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the method to substitute with.
-
Method Details
-
resolve
MethodDescription resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the method to substitute with.- Parameters:
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 orvoidif no result is expected.- Returns:
- The field to substitute with.
-