Class TypePool.Default.LazyTypeDescription.LazyRecordComponentDescription
java.lang.Object
net.bytebuddy.description.type.RecordComponentDescription.AbstractBase
net.bytebuddy.description.type.RecordComponentDescription.InDefinedShape.AbstractBase
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.LazyRecordComponentDescription
- All Implemented Interfaces:
AnnotationSource, ByteCodeElement.TypeDependant<RecordComponentDescription.InDefinedShape, RecordComponentDescription.Token>, DeclaredByType, DeclaredByType.WithMandatoryDeclaration, NamedElement, NamedElement.WithDescriptor, RecordComponentDescription, RecordComponentDescription.InDefinedShape
- Enclosing class:
TypePool.Default.LazyTypeDescription
private class TypePool.Default.LazyTypeDescription.LazyRecordComponentDescription
extends RecordComponentDescription.InDefinedShape.AbstractBase
A lazy description of a record component.
-
Nested Class Summary
Nested classes/interfaces inherited from interface AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested classes/interfaces inherited from interface DeclaredByType
DeclaredByType.WithMandatoryDeclarationNested classes/interfaces inherited from interface NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameNested classes/interfaces inherited from interface RecordComponentDescription
RecordComponentDescription.AbstractBase, RecordComponentDescription.ForLoadedRecordComponent, RecordComponentDescription.InDefinedShape, RecordComponentDescription.InGenericShape, RecordComponentDescription.Latent, RecordComponentDescription.Token, RecordComponentDescription.TypeSubstitutingNested classes/interfaces inherited from interface RecordComponentDescription.InDefinedShape
RecordComponentDescription.InDefinedShape.AbstractBase -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<TypePool.Default.LazyTypeDescription.AnnotationToken> A list of the record components annotations.private final StringThe record component's descriptor.private final StringThe record component's generic signature ornullif the record component is non-generic.private final StringThe 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.Fields inherited from interface NamedElement
EMPTY_NAME, NO_NAMEFields inherited from interface NamedElement.WithDescriptor
NON_GENERIC_SIGNATURE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLazyRecordComponentDescription(String name, String descriptor, String genericSignature, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent signatureResolution, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens) Creates a new lazy description of a record component. -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name of this element as it is found in the source code.Returns a list of annotations that are declared by this instance.Returns the declaring type of this instance.Returns the generic signature of this byte code element.getType()Returns the type of the record.Methods inherited from class RecordComponentDescription.InDefinedShape.AbstractBase
asDefined, getAccessorMethods inherited from class RecordComponentDescription.AbstractBase
asToken, equals, getDescriptor, hashCode, toStringMethods inherited from interface NamedElement.WithDescriptor
getDescriptorMethods inherited from interface RecordComponentDescription
asToken
-
Field Details
-
name
The record component's name. -
descriptor
The record component's descriptor. -
genericSignature
The record component's generic signature ornullif the record component 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 components annotations.
-
-
Constructor Details
-
LazyRecordComponentDescription
private LazyRecordComponentDescription(String name, String descriptor, @MaybeNull String genericSignature, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForRecordComponent signatureResolution, Map<String, List<TypePool.Default.LazyTypeDescription.AnnotationToken>> typeAnnotationTokens, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens) Creates a new lazy description of a record component.- Parameters:
name- The record component's name.descriptor- The record component's descriptor.genericSignature- The record component's generic signature ornullif the record component is non-generic.signatureResolution- The record component's signature resolution.typeAnnotationTokens- A mapping of the record component's type annotations.annotationTokens- A list of the record components annotations.
-
-
Method Details
-
getType
Returns the type of the record.- Returns:
- The type of the record.
-
getDeclaringType
Returns the declaring type of this instance.- Returns:
- The declaring type or
nullif no such type exists.
-
getActualName
Returns the display name of this element as it is found in the source code. If no such name exists, an empty string is returned.- Returns:
- The name of this element as given in a Java program's source code.
-
getDeclaredAnnotations
Returns a list of annotations that are declared by this instance.- Returns:
- A list of declared annotations.
-
getGenericSignature
Description copied from class:RecordComponentDescription.AbstractBaseReturns the generic signature of this byte code element. If this element does not reference generic types or references malformed generic types,nullis returned as a signature.- Specified by:
getGenericSignaturein interfaceNamedElement.WithDescriptor- Overrides:
getGenericSignaturein classRecordComponentDescription.AbstractBase- Returns:
- The generic signature or
nullif this element is not generic.
-