Package net.bytebuddy.build.maven
Class ByteBuddyMojo.FilePrefixMatcher
- java.lang.Object
-
- net.bytebuddy.build.maven.ByteBuddyMojo.FilePrefixMatcher
-
- All Implemented Interfaces:
ElementMatcher<Plugin.Engine.Source.Element>
- Enclosing class:
- ByteBuddyMojo
private static class ByteBuddyMojo.FilePrefixMatcher extends java.lang.Object implements ElementMatcher<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>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.lang.String>
names
A list of names to match.
-
Constructor Summary
Constructors Modifier Constructor Description private
FilePrefixMatcher(java.util.List<java.lang.String> names)
Create a new matcher for a list of names.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(Plugin.Engine.Source.Element target)
Matches a target against this element matcher.
-
-
-
Method Detail
-
matches
public boolean matches(Plugin.Engine.Source.Element target)
Matches a target against this element matcher.- Specified by:
matches
in interfaceElementMatcher<Plugin.Engine.Source.Element>
- Parameters:
target
- The instance to be matched.- Returns:
true
if the given element is matched by this matcher orfalse
otherwise.
-
-