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.MethodLocatorA method locator is responsible for identifying the method that is to be invoked by aMethodCall.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceMethodCall.MethodLocator.FactoryA factory for creating a method locator.static classMethodCall.MethodLocator.ForElementMatcherA method locator that identifies a unique virtual method.static classMethodCall.MethodLocator.ForExplicitMethodInvokes a given method.static classMethodCall.MethodLocator.ForInstrumentedMethodA method locator that simply returns the intercepted method.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodDescriptionresolve(TypeDescription targetType, MethodDescription instrumentedMethod)Resolves the method to be invoked.
-
-
-
Method Detail
-
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.
-
-