Package net.bytebuddy.description.type
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 net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.Explicit
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.DeclaredByType
DeclaredByType.WithMandatoryDeclaration
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.RecordComponentDescription
RecordComponentDescription.AbstractBase, RecordComponentDescription.ForLoadedRecordComponent, RecordComponentDescription.InDefinedShape, RecordComponentDescription.InGenericShape, RecordComponentDescription.Latent, RecordComponentDescription.Token, RecordComponentDescription.TypeSubstituting
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.RecordComponentDescription.InDefinedShape
RecordComponentDescription.InDefinedShape.AbstractBase
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<? extends AnnotationDescription>annotationsThe record component's annotations.private TypeDescriptiondeclaringTypeThe record component's declaring type.private java.lang.StringnameThe record component's name.private TypeDescription.GenerictypeThe record component's type.-
Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
-
Fields inherited from interface net.bytebuddy.description.NamedElement.WithDescriptor
NON_GENERIC_SIGNATURE
-
-
Constructor Summary
Constructors Constructor Description Latent(TypeDescription declaringType, java.lang.String name, TypeDescription.Generic type, java.util.List<? extends AnnotationDescription> annotations)Creates a new latent record component.Latent(TypeDescription declaringType, RecordComponentDescription.Token token)Creates a new latent record component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetActualName()Returns the display name of this element as it is found in the source code.AnnotationListgetDeclaredAnnotations()Returns a list of annotations that are declared by this instance.TypeDescriptiongetDeclaringType()Returns the declaring type of this instance.TypeDescription.GenericgetType()Returns the type of the record.-
Methods inherited from class net.bytebuddy.description.type.RecordComponentDescription.InDefinedShape.AbstractBase
asDefined, getAccessor
-
Methods inherited from class net.bytebuddy.description.type.RecordComponentDescription.AbstractBase
asToken, equals, getDescriptor, getGenericSignature, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.NamedElement.WithDescriptor
getDescriptor, getGenericSignature
-
Methods inherited from interface net.bytebuddy.description.type.RecordComponentDescription
asToken
-
-
-
-
Field Detail
-
declaringType
private final TypeDescription declaringType
The record component's declaring type.
-
name
private final java.lang.String name
The record component's name.
-
type
private final TypeDescription.Generic type
The record component's type.
-
annotations
private final java.util.List<? extends AnnotationDescription> annotations
The record component's annotations.
-
-
Constructor Detail
-
Latent
public Latent(TypeDescription declaringType, RecordComponentDescription.Token token)
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, java.lang.String name, TypeDescription.Generic type, java.util.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 Detail
-
getType
public TypeDescription.Generic getType()
Returns the type of the record.- Returns:
- The type of the record.
-
getDeclaringType
@Nonnull public TypeDescription getDeclaringType()
Returns the declaring type of this instance.- Returns:
- The declaring type or
nullif no such type exists.
-
getActualName
public java.lang.String 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
public AnnotationList getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.- Returns:
- A list of declared annotations.
-
-