Package net.bytebuddy.build.maven
Class ByteBuddyMojo.StalenessFilter
- java.lang.Object
-
- net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<W>
-
- 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 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 Modifier and Type Field Description private intfilteredA count of class files that were filtered.private longlatestTimestampThe timestamp for files to be filtered if they were created before it.private org.apache.maven.plugin.logging.LoglogThe logger to use.
-
Constructor Summary
Constructors Modifier Constructor Description protectedStalenessFilter(org.apache.maven.plugin.logging.Log log, long latestTimestamp)Creates a new staleness filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoMatch(Plugin.Engine.Source.Element target)Matches the supplied value if it was found not to benull.protected intgetFiltered()Returns a count of class files that were filtered as they were created prior to the last build.-
Methods inherited from class net.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues
matches
-
Methods inherited from class net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase
and, or
-
-
-
-
Method Detail
-
doMatch
protected boolean doMatch(Plugin.Engine.Source.Element target)
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.
-
-