@HashCodeAndEqualsPlugin.Enhance public static class MethodCall.MethodLocator.ForElementMatcher.Factory extends java.lang.Object implements MethodCall.MethodLocator.Factory
| Modifier and Type | Field and Description |
|---|---|
private ElementMatcher<? super MethodDescription> |
matcher
The matcher to use.
|
private MethodGraph.Compiler |
methodGraphCompiler
The method graph compiler to use.
|
| Constructor and Description |
|---|
Factory(ElementMatcher<? super MethodDescription> matcher,
MethodGraph.Compiler methodGraphCompiler)
Creates a factory for a method locator that identifies a method using a matcher.
|
| Modifier and Type | Method and Description |
|---|---|
MethodCall.MethodLocator |
make(TypeDescription instrumentedType)
Creates a method locator for a given instrumented type.
|
private final ElementMatcher<? super MethodDescription> matcher
private final MethodGraph.Compiler methodGraphCompiler
public Factory(ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler)
matcher - The matcher to use.methodGraphCompiler - The method graph compiler to use.public MethodCall.MethodLocator make(TypeDescription instrumentedType)
make in interface MethodCall.MethodLocator.FactoryinstrumentedType - The instrumented type.