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 aMethodCall
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
MethodCall.MethodLocator.Factory
A factory for creating a method locator.static class
MethodCall.MethodLocator.ForElementMatcher
A method locator that identifies a unique virtual method.static class
MethodCall.MethodLocator.ForExplicitMethod
Invokes a given method.static class
MethodCall.MethodLocator.ForInstrumentedMethod
A method locator that simply returns the intercepted method.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodDescription
resolve(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.
-
-