Class MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple
java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple
- All Implemented Interfaces:
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
- Enclosing interface:
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
@Enhance
public static class MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple
extends Object
implements MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
A simple method resolver that returns a given method.
-
Nested Class Summary
Nested classes/interfaces inherited from interface MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching, MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimple(MethodDescription methodDescription) Creates a new simple method resolver. -
Method Summary
Modifier and TypeMethodDescriptionresolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the method to substitute with.
-
Field Details
-
methodDescription
The method to substitute with.
-
-
Constructor Details
-
Simple
Creates a new simple method resolver.- Parameters:
methodDescription- The method to substitute with.
-
-
Method Details
-
resolve
public MethodDescription resolve(MemberSubstitution.Target target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the method to substitute with.- Specified by:
resolvein interfaceMemberSubstitution.Substitution.ForMethodInvocation.MethodResolver- 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.
-