@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.WithPreprocessor
ElementMatcher.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(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.Copyright © 2014–2020. All rights reserved.