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 java.lang.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
Fields Modifier and Type Field Description private LatentMatcher<? super RecordComponentDescription>matcherThe matcher to identify any record component that this definition concerns.private RecordComponentAttributeAppender.FactoryrecordComponentAttributeAppenderThe record component attribute appender factory to apply on any matched record component.private Transformer<RecordComponentDescription>transformerThe record component transformer to apply to any matched record component.
-
Constructor Summary
Constructors Modifier Constructor Description protectedEntry(LatentMatcher<? super RecordComponentDescription> matcher, RecordComponentAttributeAppender.Factory recordComponentAttributeAppender, Transformer<RecordComponentDescription> transformer)Creates a new entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RecordComponentAttributeAppender.FactorygetRecordComponentAttributeAppender()Returns the record component attribute appender factory to apply on any matched record component.protected Transformer<RecordComponentDescription>getTransformer()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 Detail
-
matcher
private final LatentMatcher<? super RecordComponentDescription> matcher
The matcher to identify any record component that this definition concerns.
-
recordComponentAttributeAppender
private final RecordComponentAttributeAppender.Factory recordComponentAttributeAppender
The record component attribute appender factory to apply on any matched record component.
-
transformer
private final Transformer<RecordComponentDescription> transformer
The record component transformer to apply to any matched record component.
-
-
Constructor Detail
-
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 Detail
-
getRecordComponentAttributeAppender
protected RecordComponentAttributeAppender.Factory 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
protected Transformer<RecordComponentDescription> 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
public ElementMatcher<? super RecordComponentDescription> resolve(TypeDescription typeDescription)
Resolves the element matcher this instance represents for the supplied type description.- Specified by:
resolvein interfaceLatentMatcher<RecordComponentDescription>- Parameters:
typeDescription- The type description for which the represented matcher should be resolved.- Returns:
- An
ElementMatcherthat represents this matcher's resolved form.
-
-