Package net.bytebuddy.build
Class HashCodeAndEqualsPlugin.ValueMatcher
- java.lang.Object
-
- net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<W>
-
- net.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues<FieldDescription>
-
- net.bytebuddy.build.HashCodeAndEqualsPlugin.ValueMatcher
-
- All Implemented Interfaces:
ElementMatcher<FieldDescription>,ElementMatcher.Junction<FieldDescription>
- Enclosing class:
- HashCodeAndEqualsPlugin
@Enhance protected static class HashCodeAndEqualsPlugin.ValueMatcher extends ElementMatcher.Junction.ForNonNullValues<FieldDescription>
An element matcher for aHashCodeAndEqualsPlugin.ValueHandlingannotation.
-
-
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 HashCodeAndEqualsPlugin.ValueHandling.SortsortThe matched value.
-
Constructor Summary
Constructors Modifier Constructor Description protectedValueMatcher(HashCodeAndEqualsPlugin.ValueHandling.Sort sort)Creates a new value matcher.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandoMatch(FieldDescription 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 Detail
-
sort
private final HashCodeAndEqualsPlugin.ValueHandling.Sort sort
The matched value.
-
-
Constructor Detail
-
ValueMatcher
protected ValueMatcher(HashCodeAndEqualsPlugin.ValueHandling.Sort sort)
Creates a new value matcher.- Parameters:
sort- The matched value.
-
-
Method Detail
-
doMatch
protected boolean doMatch(FieldDescription target)
Matches the supplied value if it was found not to benull.- Specified by:
doMatchin classElementMatcher.Junction.ForNonNullValues<FieldDescription>- Parameters:
target- The instance to be matched.- Returns:
trueif the given element is matched by this matcher orfalseotherwise.
-
-