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.
  • Method Details

    • resolve

      MethodDescription resolve(TypeDescription targetType, MethodDescription instrumentedMethod)
      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.