public static class RecordComponentDescription.ForLoadedRecordComponent extends RecordComponentDescription.InDefinedShape.AbstractBase
Modifier and Type | Class and Description |
---|---|
protected static interface |
RecordComponentDescription.ForLoadedRecordComponent.Dispatcher
A dispatcher for resolving a
java.lang.reflect.RecordComponent . |
RecordComponentDescription.InDefinedShape.AbstractBase
RecordComponentDescription.ForLoadedRecordComponent, RecordComponentDescription.InDefinedShape, RecordComponentDescription.InGenericShape, RecordComponentDescription.Latent, RecordComponentDescription.Token, RecordComponentDescription.TypeSubstituting
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
AnnotationSource.Empty, AnnotationSource.Explicit
Modifier and Type | Field and Description |
---|---|
protected static RecordComponentDescription.ForLoadedRecordComponent.Dispatcher |
DISPATCHER
The dispatcher to use.
|
NON_GENERIC_SIGNATURE
EMPTY_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 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.
|
asDefined
asToken, equals, getDescriptor, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asToken
getDescriptor
protected static final RecordComponentDescription.ForLoadedRecordComponent.Dispatcher DISPATCHER
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.AbstractBase
getAccessor
in interface RecordComponentDescription
getAccessor
in interface RecordComponentDescription.InDefinedShape
getAccessor
in class RecordComponentDescription.InDefinedShape.AbstractBase
public TypeDescription getDeclaringType()
null
if no such type exists.public String getActualName()
public String getGenericSignature()
RecordComponentDescription.AbstractBase
null
is returned as a signature.getGenericSignature
in interface NamedElement.WithDescriptor
getGenericSignature
in class RecordComponentDescription.AbstractBase
null
if this element is not generic.public AnnotationList getDeclaredAnnotations()
Copyright © 2014–2020. All rights reserved.