@HashCodeAndEqualsPlugin.Enhance protected static class RecordComponentRegistry.Default.Compiled.Entry extends Object implements ElementMatcher<RecordComponentDescription>
ElementMatcher.Junction<S>
Modifier | Constructor and Description |
---|---|
protected |
Entry(ElementMatcher<? super RecordComponentDescription> matcher,
RecordComponentAttributeAppender recordComponentAttributeAppender,
Transformer<RecordComponentDescription> transformer)
Creates a new entry.
|
Modifier and Type | Method and Description |
---|---|
protected TypeWriter.RecordComponentPool.Record |
bind(TypeDescription instrumentedType,
RecordComponentDescription recordComponentDescription)
Binds this entry to the provided record component description.
|
boolean |
matches(RecordComponentDescription target)
Matches a target against this element matcher.
|
protected Entry(ElementMatcher<? super RecordComponentDescription> matcher, RecordComponentAttributeAppender recordComponentAttributeAppender, Transformer<RecordComponentDescription> transformer)
matcher
- The matcher to identify any record component that this definition concerns.recordComponentAttributeAppender
- The record component attribute appender to apply on any matched record component.transformer
- The record component transformer to apply to any matched record component.protected TypeWriter.RecordComponentPool.Record bind(TypeDescription instrumentedType, RecordComponentDescription recordComponentDescription)
instrumentedType
- The instrumented type for which this entry applies.recordComponentDescription
- The record component description to be bound to this entry.public boolean matches(@MaybeNull RecordComponentDescription target)
matches
in interface ElementMatcher<RecordComponentDescription>
target
- The instance to be matched or null
.true
if the given element is matched by this matcher or false
otherwise.Copyright © 2014–2024. All rights reserved.