@HashCodeAndEqualsPlugin.Enhance protected static class RebaseDynamicTypeBuilder.RebaseableMatcher extends java.lang.Object implements ElementMatcher<MethodDescription.Token>
ElementMatcher.Junction<S>
Modifier and Type | Field and Description |
---|---|
private java.util.Set<MethodDescription.Token> |
tokens
A set of method tokens representing all instrumented methods.
|
Modifier | Constructor and Description |
---|---|
protected |
RebaseableMatcher(java.util.Set<MethodDescription.Token> tokens)
Creates a new matcher for identifying rebasable methods.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(MethodDescription.Token target)
Matches a target against this element matcher.
|
protected static ElementMatcher<MethodDescription.Token> |
of(TypeDescription instrumentedType,
MethodList<?> instrumentedMethods)
Returns a matcher that filters any method that should not be rebased.
|
private final java.util.Set<MethodDescription.Token> tokens
protected RebaseableMatcher(java.util.Set<MethodDescription.Token> tokens)
tokens
- A set of method tokens representing all instrumented methods.protected static ElementMatcher<MethodDescription.Token> of(TypeDescription instrumentedType, MethodList<?> instrumentedMethods)
instrumentedType
- The instrumented type.instrumentedMethods
- All instrumented methods.public boolean matches(MethodDescription.Token target)
matches
in interface ElementMatcher<MethodDescription.Token>
target
- The instance to be matched.true
if the given element is matched by this matcher or false
otherwise.