@HashCodeAndEqualsPlugin.Enhance public abstract static class Plugin.ForElementMatcher extends java.lang.Object implements Plugin
Plugin that matches types by a given ElementMatcher.Plugin.Compound, Plugin.Engine, Plugin.Factory, Plugin.ForElementMatcher, Plugin.NoOpElementMatcher.Junction<S>| Modifier and Type | Field and Description |
|---|---|
private ElementMatcher<? super TypeDescription> |
matcher
The element matcher to apply.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ForElementMatcher(ElementMatcher<? super TypeDescription> matcher)
Creates a new plugin that matches types using an element matcher.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(TypeDescription target)
Matches a target against this element matcher.
|
private final ElementMatcher<? super TypeDescription> matcher
protected ForElementMatcher(ElementMatcher<? super TypeDescription> matcher)
matcher - The element matcher to apply.public boolean matches(TypeDescription target)
matches in interface ElementMatcher<TypeDescription>target - The instance to be matched.true if the given element is matched by this matcher or false otherwise.