@HashCodeAndEqualsPlugin.Enhance protected static class FieldRegistry.Default.Entry extends Object implements LatentMatcher<FieldDescription>
LatentMatcher.Conjunction<S>, LatentMatcher.Disjunction<S>, LatentMatcher.ForFieldToken, LatentMatcher.ForMethodToken, LatentMatcher.ForRecordComponentToken, LatentMatcher.ForSelfDeclaredMethod, LatentMatcher.Resolved<S>| Modifier | Constructor and Description |
|---|---|
protected |
Entry(LatentMatcher<? super FieldDescription> matcher,
FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
Object defaultValue,
Transformer<FieldDescription> transformer)
Creates a new entry.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getDefaultValue()
Returns the default value to write to the field or
null if no default value is to be set for the field. |
protected FieldAttributeAppender.Factory |
getFieldAttributeAppenderFactory()
Returns the field attribute appender factory to apply on any matched field.
|
protected Transformer<FieldDescription> |
getTransformer()
Returns the field transformer to apply to any matched field.
|
ElementMatcher<? super FieldDescription> |
resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.
|
protected Entry(LatentMatcher<? super FieldDescription> matcher, FieldAttributeAppender.Factory fieldAttributeAppenderFactory, @MaybeNull Object defaultValue, Transformer<FieldDescription> transformer)
matcher - The matcher to identify any field that this definition concerns.fieldAttributeAppenderFactory - The field attribute appender factory to apply on any matched field.defaultValue - The default value to write to the field or null if no default value is to be set for the field.transformer - The field transformer to apply to any matched field.protected FieldAttributeAppender.Factory getFieldAttributeAppenderFactory()
@MaybeNull protected Object getDefaultValue()
null if no default value is to be set for the field.null if no default value is to be set for the field.protected Transformer<FieldDescription> getTransformer()
public ElementMatcher<? super FieldDescription> resolve(TypeDescription typeDescription)
resolve in interface LatentMatcher<FieldDescription>typeDescription - The type description for which the represented matcher should be resolved.ElementMatcher that represents this matcher's resolved form.Copyright © 2014–2025. All rights reserved.