Package net.bytebuddy.build.maven
Class ByteBuddyMojo.FilePrefixMatcher
java.lang.Object
net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<Plugin.Engine.Source.Element>
net.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues<Plugin.Engine.Source.Element>
net.bytebuddy.build.maven.ByteBuddyMojo.FilePrefixMatcher
- All Implemented Interfaces:
ElementMatcher<Plugin.Engine.Source.Element>
,ElementMatcher.Junction<Plugin.Engine.Source.Element>
- Enclosing class:
ByteBuddyMojo
private static class ByteBuddyMojo.FilePrefixMatcher
extends ElementMatcher.Junction.ForNonNullValues<Plugin.Engine.Source.Element>
Matches elements which represent a Java class that is represented in the list or an inner class of the classes represented in the list.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher
ElementMatcher.Junction<S>
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.ElementMatcher.Junction
ElementMatcher.Junction.AbstractBase<V>, ElementMatcher.Junction.Conjunction<W>, ElementMatcher.Junction.Disjunction<W>, ElementMatcher.Junction.ForNonNullValues<W>
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
FilePrefixMatcher
(List<String> names) Create a new matcher for a list of names. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
doMatch
(Plugin.Engine.Source.Element target) Matches the supplied value if it was found not to benull
.Methods inherited from class net.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues
matches
Methods inherited from class net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase
and, or
-
Field Details
-
names
A list of names to match.
-
-
Constructor Details
-
FilePrefixMatcher
Create a new matcher for a list of names.- Parameters:
names
- A list of included names.
-
-
Method Details
-
doMatch
Matches the supplied value if it was found not to benull
.- Specified by:
doMatch
in classElementMatcher.Junction.ForNonNullValues<Plugin.Engine.Source.Element>
- Parameters:
target
- The instance to be matched.- Returns:
true
if the given element is matched by this matcher orfalse
otherwise.
-