@HashCodeAndEqualsPlugin.Enhance protected static class FieldRegistry.Default.Compiled.Entry extends Object implements ElementMatcher<FieldDescription>
ElementMatcher.Junction<S>| Modifier | Constructor and Description |
|---|---|
protected |
Entry(ElementMatcher<? super FieldDescription> matcher,
FieldAttributeAppender fieldAttributeAppender,
Object defaultValue,
Transformer<FieldDescription> transformer)
Creates a new entry.
|
| Modifier and Type | Method and Description |
|---|---|
protected TypeWriter.FieldPool.Record |
bind(TypeDescription instrumentedType,
FieldDescription fieldDescription)
Binds this entry to the provided field description.
|
boolean |
matches(FieldDescription target)
Matches a target against this element matcher.
|
protected Entry(ElementMatcher<? super FieldDescription> matcher, FieldAttributeAppender fieldAttributeAppender, @MaybeNull Object defaultValue, Transformer<FieldDescription> transformer)
matcher - The matcher to identify any field that this definition concerns.fieldAttributeAppender - The field attribute appender 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 TypeWriter.FieldPool.Record bind(TypeDescription instrumentedType, FieldDescription fieldDescription)
instrumentedType - The instrumented type for which this entry applies.fieldDescription - The field description to be bound to this entry.public boolean matches(@MaybeNull FieldDescription target)
matches in interface ElementMatcher<FieldDescription>target - The instance to be matched or null.true if the given element is matched by this matcher or false otherwise.Copyright © 2014–2025. All rights reserved.