Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.RecordComponentToken
java.lang.Object
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.RecordComponentToken
- Enclosing class:
- TypePool.Default.LazyTypeDescription
@Enhance
protected static class TypePool.Default.LazyTypeDescription.RecordComponentToken
extends Object
A token representing a record component.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<TypePool.Default.LazyTypeDescription.AnnotationToken>
A list of the record component's annotations.private final String
The record component's descriptor.private final String
The record component's generic signature ornull
if it is non-generic.private final String
The record component's name.The record component's signature resolution.private final Map<String,
List<TypePool.Default.LazyTypeDescription.AnnotationToken>> A mapping of the record component's type annotations. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RecordComponentToken
(String name, String descriptor, String genericSignature, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens) Creates a new record component token. -
Method Summary
Modifier and TypeMethodDescriptiontoRecordComponentDescription
(TypePool.Default.LazyTypeDescription lazyTypeDescription) Transforms this record component token to a record component description that is attached to a lazy type description.
-
Field Details
-
name
The record component's name. -
descriptor
The record component's descriptor. -
genericSignature
The record component's generic signature ornull
if it is non-generic. -
signatureResolution
private final TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent signatureResolutionThe record component's signature resolution. -
typeAnnotationTokens
private final Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokensA mapping of the record component's type annotations. -
annotationTokens
A list of the record component's annotations.
-
-
Constructor Details
-
RecordComponentToken
protected RecordComponentToken(String name, String descriptor, @MaybeNull String genericSignature, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens) Creates a new record component token.- Parameters:
name
- The record component's name.descriptor
- The record component's descriptor.genericSignature
- The record component's generic signature ornull
if it is non-generic.typeAnnotationTokens
- A mapping of the record component's type annotations.annotationTokens
- A list of the record component's annotations.
-
-
Method Details
-
toRecordComponentDescription
private RecordComponentDescription.InDefinedShape toRecordComponentDescription(TypePool.Default.LazyTypeDescription lazyTypeDescription) Transforms this record component token to a record component description that is attached to a lazy type description.- Parameters:
lazyTypeDescription
- The lazy type description to attach this record component description to.- Returns:
- A record component description representing this record component token.
-