@HashCodeAndEqualsPlugin.Enhance protected static class RebaseDynamicTypeBuilder.RebaseableMatcher extends Object implements ElementMatcher<MethodDescription.Token>
ElementMatcher.Junction<S>
Modifier | Constructor and Description |
---|---|
protected |
RebaseableMatcher(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.
|
protected RebaseableMatcher(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.Copyright © 2014–2020. All rights reserved.