public static class RecordComponentDescription.ForLoadedRecordComponent extends RecordComponentDescription.InDefinedShape.AbstractBase
| Modifier and Type | Class and Description |
|---|---|
protected static interface |
RecordComponentDescription.ForLoadedRecordComponent.RecordComponent
A dispatcher for accessing methods of
java.lang.reflect.RecordComponent. |
RecordComponentDescription.InDefinedShape.AbstractBaseRecordComponentDescription.ForLoadedRecordComponent, RecordComponentDescription.InDefinedShape, RecordComponentDescription.InGenericShape, RecordComponentDescription.Latent, RecordComponentDescription.Token, RecordComponentDescription.TypeSubstitutingDeclaredByType.WithMandatoryDeclarationNamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameAnnotationSource.Empty, AnnotationSource.Explicit| Modifier and Type | Field and Description |
|---|---|
protected static RecordComponentDescription.ForLoadedRecordComponent.RecordComponent |
RECORD_COMPONENT
A dispatcher for accessing
java.lang.RecordComponent types. |
NON_GENERIC_SIGNATUREEMPTY_NAME, NO_NAME| Modifier | Constructor and Description |
|---|---|
protected |
ForLoadedRecordComponent(AnnotatedElement recordComponent)
Creates a new representation of a loaded record component.
|
| Modifier and Type | Method and Description |
|---|---|
MethodDescription.InDefinedShape |
getAccessor()
Returns the accessor for this record component.
|
String |
getActualName()
Returns the display name of this element as it is found in the source code.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
TypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
String |
getGenericSignature()
Returns the generic signature of this byte code element.
|
TypeDescription.Generic |
getType()
Returns the type of the record.
|
static RecordComponentDescription |
of(Object recordComponent)
Resolves an instance into a record component description.
|
asDefinedasToken, equals, getDescriptor, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasTokengetDescriptorprotected static final RecordComponentDescription.ForLoadedRecordComponent.RecordComponent RECORD_COMPONENT
java.lang.RecordComponent types.protected ForLoadedRecordComponent(AnnotatedElement recordComponent)
recordComponent - The represented record component.public static RecordComponentDescription of(Object recordComponent)
recordComponent - The record component to represent.public TypeDescription.Generic getType()
public MethodDescription.InDefinedShape getAccessor()
RecordComponentDescription.InDefinedShape.AbstractBasegetAccessor in interface RecordComponentDescriptiongetAccessor in interface RecordComponentDescription.InDefinedShapegetAccessor in class RecordComponentDescription.InDefinedShape.AbstractBase@Nonnull public TypeDescription getDeclaringType()
null if no such type exists.public String getActualName()
@MaybeNull public String getGenericSignature()
RecordComponentDescription.AbstractBasenull is returned as a signature.getGenericSignature in interface NamedElement.WithDescriptorgetGenericSignature in class RecordComponentDescription.AbstractBasenull if this element is not generic.public AnnotationList getDeclaredAnnotations()
Copyright © 2014–2025. All rights reserved.