@HashCodeAndEqualsPlugin.Enhance public static class MethodCall.MethodLocator.ForExplicitMethod extends Object implements MethodCall.MethodLocator
MethodCall.MethodLocator.ForElementMatcher, MethodCall.MethodLocator.ForExplicitMethod, MethodCall.MethodLocator.ForInstrumentedMethod
Modifier | Constructor and Description |
---|---|
protected |
ForExplicitMethod(MethodDescription methodDescription)
Creates a new method locator for a given method.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription |
resolve(TypeDescription instrumentedType,
TypeDescription targetType,
MethodDescription instrumentedMethod)
Resolves the method to be invoked.
|
protected ForExplicitMethod(MethodDescription methodDescription)
methodDescription
- The method to be invoked.public MethodDescription resolve(TypeDescription instrumentedType, TypeDescription targetType, MethodDescription instrumentedMethod)
resolve
in interface MethodCall.MethodLocator
instrumentedType
- The instrumented type.targetType
- The type the method is called on.instrumentedMethod
- The method being instrumented.Copyright © 2014–2018. All rights reserved.