protected static class MethodRegistry.Default.ListDifferenceMethodMatcher extends Object implements ElementMatcher<MethodDescription>, MethodRegistry.LatentMethodMatcher
ElementMatcher.Junction<S>
MethodRegistry.LatentMethodMatcher.Simple
Modifier | Constructor and Description |
---|---|
protected |
ListDifferenceMethodMatcher(MethodList beforeMethods,
MethodList afterMethods)
Creates a new list difference method matcher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
ElementMatcher<? super MethodDescription> |
manifest(TypeDescription typeDescription)
Manifests a latent method matcher.
|
boolean |
matches(MethodDescription methodDescription)
Matches a target against this element matcher.
|
String |
toString() |
protected ListDifferenceMethodMatcher(MethodList beforeMethods, MethodList afterMethods)
beforeMethods
- A list of methods that should not be matched.afterMethods
- The same list after adding additional methods. The order of the methods in
this list must not be altered.public boolean matches(MethodDescription methodDescription)
ElementMatcher
matches
in interface ElementMatcher<MethodDescription>
methodDescription
- The instance to be matched.true
if the given element is matched by this matcher or false
otherwise.public ElementMatcher<? super MethodDescription> manifest(TypeDescription typeDescription)
MethodRegistry.LatentMethodMatcher
manifest
in interface MethodRegistry.LatentMethodMatcher
typeDescription
- The description of the type that is subject to instrumentation.Copyright © 2014–2015. All rights reserved.