Class ByteBuddyMojo.StalenessFilter
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.StalenessFilter
- All Implemented Interfaces:
ElementMatcher<Plugin.Engine.Source.Element>, ElementMatcher.Junction<Plugin.Engine.Source.Element>
- Enclosing class:
ByteBuddyMojo
protected static class ByteBuddyMojo.StalenessFilter
extends ElementMatcher.Junction.ForNonNullValues<Plugin.Engine.Source.Element>
A filter for files that were written before a given timestamp, to avoid duplicate application.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ElementMatcher
ElementMatcher.Junction<S>Nested classes/interfaces inherited from interface ElementMatcher.Junction
ElementMatcher.Junction.AbstractBase<V>, ElementMatcher.Junction.Conjunction<W>, ElementMatcher.Junction.Disjunction<W>, ElementMatcher.Junction.ForNonNullValues<W> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStalenessFilter(org.apache.maven.plugin.logging.Log log, long latestTimestamp) Creates a new staleness filter. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoMatch(Plugin.Engine.Source.Element target) Matches the supplied value if it was found not to benull.protected intReturns a count of class files that were filtered as they were created prior to the last build.Methods inherited from class ElementMatcher.Junction.ForNonNullValues
matchesMethods inherited from class ElementMatcher.Junction.AbstractBase
and, or
-
Constructor Details
-
StalenessFilter
protected StalenessFilter(org.apache.maven.plugin.logging.Log log, long latestTimestamp) Creates a new staleness filter.- Parameters:
log- The logger to use.latestTimestamp- The timestamp for files to be filtered if they were created before it.
-
-
Method Details
-
doMatch
Matches the supplied value if it was found not to benull.- Specified by:
doMatchin classElementMatcher.Junction.ForNonNullValues<Plugin.Engine.Source.Element>- Parameters:
target- The instance to be matched.- Returns:
trueif the given element is matched by this matcher orfalseotherwise.
-
getFiltered
protected int getFiltered()Returns a count of class files that were filtered as they were created prior to the last build.- Returns:
- The amount of filtered classes.
-