public static class RecordComponentDescription.Latent extends RecordComponentDescription.InDefinedShape.AbstractBase
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
NON_GENERIC_SIGNATURE
EMPTY_NAME, NO_NAME
Constructor and Description |
---|
Latent(TypeDescription declaringType,
RecordComponentDescription.Token token)
Creates a new latent record component.
|
Latent(TypeDescription declaringType,
String name,
TypeDescription.Generic type,
List<? extends AnnotationDescription> annotations)
Creates a new latent record component.
|
Modifier and Type | Method and Description |
---|---|
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.
|
TypeDescription.Generic |
getType()
Returns the type of the record.
|
asDefined, getAccessor
asToken, equals, getDescriptor, getGenericSignature, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asToken
getDescriptor, getGenericSignature
public Latent(TypeDescription declaringType, RecordComponentDescription.Token token)
declaringType
- The record component's declaring type.token
- The token representing the record component's detached properties.public Latent(TypeDescription declaringType, String name, TypeDescription.Generic type, List<? extends AnnotationDescription> annotations)
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.public TypeDescription.Generic getType()
public TypeDescription getDeclaringType()
null
if no such type exists.public String getActualName()
public AnnotationList getDeclaredAnnotations()
Copyright © 2014–2020. All rights reserved.