@HashCodeAndEqualsPlugin.Enhance public abstract static class Plugin.ForElementMatcher extends Object implements Plugin
Plugin that matches types by a given ElementMatcher.Plugin.Engine, Plugin.Factory, Plugin.ForElementMatcher, Plugin.NoOp, Plugin.WithInitialization, Plugin.WithPreprocessorElementMatcher.Junction<S>| 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.
|
protected ForElementMatcher(ElementMatcher<? super TypeDescription> matcher)
matcher - The element matcher to apply.public boolean matches(@MaybeNull TypeDescription target)
matches in interface ElementMatcher<TypeDescription>target - The instance to be matched or null.true if the given element is matched by this matcher or false otherwise.Copyright © 2014–2023. All rights reserved.