Package net.bytebuddy.implementation
Class MethodCall.MethodLocator.ForExplicitMethod
- java.lang.Object
-
- net.bytebuddy.implementation.MethodCall.MethodLocator.ForExplicitMethod
-
- All Implemented Interfaces:
MethodCall.MethodLocator
- Enclosing interface:
- MethodCall.MethodLocator
public static class MethodCall.MethodLocator.ForExplicitMethod extends java.lang.Object implements MethodCall.MethodLocator
Invokes a given method.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.implementation.MethodCall.MethodLocator
MethodCall.MethodLocator.ForElementMatcher, MethodCall.MethodLocator.ForExplicitMethod, MethodCall.MethodLocator.ForInstrumentedMethod
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ForExplicitMethod(MethodDescription methodDescription)
Creates a new method locator for a given method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodDescription
resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Resolves the method to be invoked.
-
-
-
Constructor Detail
-
ForExplicitMethod
protected ForExplicitMethod(MethodDescription methodDescription)
Creates a new method locator for a given method.- Parameters:
methodDescription
- The method to be invoked.
-
-
Method Detail
-
resolve
public MethodDescription resolve(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Description copied from interface:MethodCall.MethodLocator
Resolves the method to be invoked.- Specified by:
resolve
in interfaceMethodCall.MethodLocator
- Parameters:
instrumentedType
- The instrumented type.instrumentedMethod
- The method being instrumented.- Returns:
- The method to invoke.
-
-