Package net.bytebuddy.implementation
Interface MethodCall.MethodLocator
- All Known Implementing Classes:
MethodCall.MethodLocator.ForElementMatcher
,MethodCall.MethodLocator.ForExplicitMethod
,MethodCall.MethodLocator.ForInstrumentedMethod
- Enclosing class:
MethodCall
public static interface MethodCall.MethodLocator
A method locator is responsible for identifying the method that is to be invoked
by a
MethodCall
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A factory for creating a method locator.static class
A method locator that identifies a unique virtual method.static class
Invokes a given method.static enum
A method locator that simply returns the intercepted method. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription targetType, MethodDescription instrumentedMethod) Resolves the method to be invoked.
-
Method Details
-
resolve
Resolves the method to be invoked.- Parameters:
targetType
- The type the method is called on.instrumentedMethod
- The method being instrumented.- Returns:
- The method to invoke.
-