@HashCodeAndEqualsPlugin.Enhance public static class MethodCall.MethodLocator.ForElementMatcher extends Object implements MethodCall.MethodLocator
| Modifier and Type | Class and Description | 
|---|---|
| static class  | MethodCall.MethodLocator.ForElementMatcher.FactoryA factory for a method locator that uses a matcher on the instrumented type's available methods for identifing a target method. | 
MethodCall.MethodLocator.ForElementMatcher, MethodCall.MethodLocator.ForExplicitMethod, MethodCall.MethodLocator.ForInstrumentedMethod| Modifier | Constructor and Description | 
|---|---|
| protected  | ForElementMatcher(TypeDescription instrumentedType,
                 ElementMatcher<? super MethodDescription> matcher,
                 MethodGraph.Compiler methodGraphCompiler)Creates a new method locator for an element matcher. | 
| Modifier and Type | Method and Description | 
|---|---|
| MethodDescription | resolve(TypeDescription targetType,
       MethodDescription instrumentedMethod)Resolves the method to be invoked. | 
protected ForElementMatcher(TypeDescription instrumentedType, ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler)
instrumentedType - The instrumented type.matcher - The matcher to use.methodGraphCompiler - The method graph compiler to use.public MethodDescription resolve(TypeDescription targetType, MethodDescription instrumentedMethod)
resolve in interface MethodCall.MethodLocatortargetType - The type the method is called on.instrumentedMethod - The method being instrumented.Copyright © 2014–2024. All rights reserved.