Package net.bytebuddy.asm
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.MethodResolverA method resolver for locating a method for a substitute.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classMemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.MatchingA method resolver that locates a non-static method by locating it from the receiver type.static classMemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.SimpleA simple method resolver that returns a given method.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodDescriptionresolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)Resolves the method to substitute with.
-
-
-
Method Detail
-
resolve
MethodDescription resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)
Resolves the method to substitute with.- Parameters:
targetType- The target type on which a member is accessed.target- 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 orvoidif no result is expected.- Returns:
- The field to substitute with.
-
-