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 interfaceA factory for creating a method locator.static classA method locator that identifies a unique virtual method.static classInvokes a given method.static enumA 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.
-