Package net.bytebuddy.asm
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 java.lang.Object implements MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
A simple method resolver that returns a given method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Matching, MemberSubstitution.Substitution.ForMethodInvocation.MethodResolver.Simple
-
-
Field Summary
Fields Modifier and Type Field Description private MethodDescription
methodDescription
The method to substitute with.
-
Constructor Summary
Constructors Constructor Description Simple(MethodDescription methodDescription)
Creates a new simple method resolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodDescription
resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)
Resolves the method to substitute with.
-
-
-
Field Detail
-
methodDescription
private final MethodDescription methodDescription
The method to substitute with.
-
-
Constructor Detail
-
Simple
public Simple(MethodDescription methodDescription)
Creates a new simple method resolver.- Parameters:
methodDescription
- The method to substitute with.
-
-
Method Detail
-
resolve
public MethodDescription resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)
Resolves the method to substitute with.- Specified by:
resolve
in interfaceMemberSubstitution.Substitution.ForMethodInvocation.MethodResolver
- 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 orvoid
if no result is expected.- Returns:
- The field to substitute with.
-
-