Class RecordComponentDescription.Latent
java.lang.Object
net.bytebuddy.description.type.RecordComponentDescription.AbstractBase
net.bytebuddy.description.type.RecordComponentDescription.InDefinedShape.AbstractBase
net.bytebuddy.description.type.RecordComponentDescription.Latent
- All Implemented Interfaces:
AnnotationSource, ByteCodeElement.TypeDependant<RecordComponentDescription.InDefinedShape, RecordComponentDescription.Token>, DeclaredByType, DeclaredByType.WithMandatoryDeclaration, NamedElement, NamedElement.WithDescriptor, RecordComponentDescription, RecordComponentDescription.InDefinedShape
- Enclosing interface:
RecordComponentDescription
public static class RecordComponentDescription.Latent
extends RecordComponentDescription.InDefinedShape.AbstractBase
A latent record component description.
-
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<? extends AnnotationDescription> The record component's annotations.private final TypeDescriptionThe record component's declaring type.private final StringThe record component's name.private final TypeDescription.GenericThe record component's type.Fields inherited from interface NamedElement
EMPTY_NAME, NO_NAMEFields inherited from interface NamedElement.WithDescriptor
NON_GENERIC_SIGNATURE -
Constructor Summary
ConstructorsConstructorDescriptionLatent(TypeDescription declaringType, String name, TypeDescription.Generic type, List<? extends AnnotationDescription> annotations) Creates a new latent record component.Latent(TypeDescription declaringType, RecordComponentDescription.Token token) Creates a new latent 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.getType()Returns the type of the record.Methods inherited from class RecordComponentDescription.InDefinedShape.AbstractBase
asDefined, getAccessorMethods inherited from class RecordComponentDescription.AbstractBase
asToken, equals, getDescriptor, getGenericSignature, hashCode, toStringMethods inherited from interface NamedElement.WithDescriptor
getDescriptor, getGenericSignatureMethods inherited from interface RecordComponentDescription
asToken
-
Field Details
-
declaringType
The record component's declaring type. -
name
The record component's name. -
type
The record component's type. -
annotations
The record component's annotations.
-
-
Constructor Details
-
Latent
Creates a new latent record component.- Parameters:
declaringType- The record component's declaring type.token- The token representing the record component's detached properties.
-
Latent
public Latent(TypeDescription declaringType, String name, TypeDescription.Generic type, List<? extends AnnotationDescription> annotations) Creates a new latent record component.- Parameters:
declaringType- The record component's declaring type-name- The record component's name.type- The record component's type.annotations- The record component's 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.
-