Package net.bytebuddy.dynamic.scaffold
Class RecordComponentRegistry.Default.Entry
java.lang.Object
net.bytebuddy.dynamic.scaffold.RecordComponentRegistry.Default.Entry
- All Implemented Interfaces:
LatentMatcher<RecordComponentDescription>
- Enclosing class:
- RecordComponentRegistry.Default
@Enhance
protected static class RecordComponentRegistry.Default.Entry
extends Object
implements LatentMatcher<RecordComponentDescription>
An entry of the default record component registry.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.matcher.LatentMatcher
LatentMatcher.Conjunction<S>, LatentMatcher.Disjunction<S>, LatentMatcher.ForFieldToken, LatentMatcher.ForMethodToken, LatentMatcher.ForRecordComponentToken, LatentMatcher.ForSelfDeclaredMethod, LatentMatcher.Resolved<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LatentMatcher<? super RecordComponentDescription>
The matcher to identify any record component that this definition concerns.private final RecordComponentAttributeAppender.Factory
The record component attribute appender factory to apply on any matched record component.private final Transformer<RecordComponentDescription>
The record component transformer to apply to any matched record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Entry
(LatentMatcher<? super RecordComponentDescription> matcher, RecordComponentAttributeAppender.Factory recordComponentAttributeAppender, Transformer<RecordComponentDescription> transformer) Creates a new entry. -
Method Summary
Modifier and TypeMethodDescriptionprotected RecordComponentAttributeAppender.Factory
Returns the record component attribute appender factory to apply on any matched record component.protected Transformer<RecordComponentDescription>
Returns the record component transformer to apply to any matched record component.ElementMatcher<? super RecordComponentDescription>
resolve
(TypeDescription typeDescription) Resolves the element matcher this instance represents for the supplied type description.
-
Field Details
-
matcher
The matcher to identify any record component that this definition concerns. -
recordComponentAttributeAppender
The record component attribute appender factory to apply on any matched record component. -
transformer
The record component transformer to apply to any matched record component.
-
-
Constructor Details
-
Entry
protected Entry(LatentMatcher<? super RecordComponentDescription> matcher, RecordComponentAttributeAppender.Factory recordComponentAttributeAppender, Transformer<RecordComponentDescription> transformer) Creates a new entry.- Parameters:
matcher
- The matcher to identify any record component that this definition concerns.recordComponentAttributeAppender
- The record component attribute appender factory to apply on any matched record component.transformer
- The record component transformer to apply to any matched record component.
-
-
Method Details
-
getRecordComponentAttributeAppender
Returns the record component attribute appender factory to apply on any matched record component.- Returns:
- The record component attribute appender factory to apply on any matched record component.
-
getTransformer
Returns the record component transformer to apply to any matched record component.- Returns:
- The record component transformer to apply to any matched record component.
-
resolve
Resolves the element matcher this instance represents for the supplied type description.- Specified by:
resolve
in interfaceLatentMatcher<RecordComponentDescription>
- Parameters:
typeDescription
- The type description for which the represented matcher should be resolved.- Returns:
- An
ElementMatcher
that represents this matcher's resolved form.
-