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 java.lang.Object
A token representing a record component.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>annotationTokensA list of the record component's annotations.private java.lang.StringdescriptorThe record component's descriptor.private java.lang.StringgenericSignatureThe record component's generic signature ornullif it is non-generic.private java.lang.StringnameThe record component's name.private TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponentsignatureResolutionThe record component's signature resolution.private java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>>typeAnnotationTokensA mapping of the record component's type annotations.
-
Constructor Summary
Constructors Modifier Constructor Description protectedRecordComponentToken(java.lang.String name, java.lang.String descriptor, java.lang.String genericSignature, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens, java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens)Creates a new record component token.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private RecordComponentDescription.InDefinedShapetoRecordComponentDescription(TypePool.Default.LazyTypeDescription lazyTypeDescription)Transforms this record component token to a record component description that is attached to a lazy type description.
-
-
-
Field Detail
-
name
private final java.lang.String name
The record component's name.
-
descriptor
private final java.lang.String descriptor
The record component's descriptor.
-
genericSignature
@UnknownNull private final java.lang.String genericSignature
The record component's generic signature ornullif it is non-generic.
-
signatureResolution
private final TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent signatureResolution
The record component's signature resolution.
-
typeAnnotationTokens
private final java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens
A mapping of the record component's type annotations.
-
annotationTokens
private final java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens
A list of the record component's annotations.
-
-
Constructor Detail
-
RecordComponentToken
protected RecordComponentToken(java.lang.String name, java.lang.String descriptor, @MaybeNull java.lang.String genericSignature, java.util.Map<java.lang.String,java.util.List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens, java.util.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 ornullif it is non-generic.typeAnnotationTokens- A mapping of the record component's type annotations.annotationTokens- A list of the record component's annotations.
-
-
Method Detail
-
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.
-
-