public static class RecordComponentDescription.TypeSubstituting extends RecordComponentDescription.AbstractBase implements RecordComponentDescription.InGenericShape
RecordComponentDescription.AbstractBase, RecordComponentDescription.ForLoadedRecordComponent, RecordComponentDescription.InDefinedShape, RecordComponentDescription.InGenericShape, RecordComponentDescription.Latent, RecordComponentDescription.Token, RecordComponentDescription.TypeSubstituting
DeclaredByType.WithMandatoryDeclaration
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
AnnotationSource.Empty, AnnotationSource.Explicit
NON_GENERIC_SIGNATURE
EMPTY_NAME, NO_NAME
Constructor and Description |
---|
TypeSubstituting(TypeDescription.Generic declaringType,
RecordComponentDescription recordComponentDescription,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new type substituting representation of a record component description.
|
Modifier and Type | Method and Description |
---|---|
RecordComponentDescription.InDefinedShape |
asDefined()
Returns this type dependant in its defined shape, i.e.
|
MethodDescription.InGenericShape |
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.
|
TypeDefinition |
getDeclaringType()
Returns the declaring type of this instance.
|
TypeDescription.Generic |
getType()
Returns the type of the record.
|
asToken, equals, getDescriptor, getGenericSignature, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asToken
getDescriptor, getGenericSignature
public TypeSubstituting(TypeDescription.Generic declaringType, RecordComponentDescription recordComponentDescription, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
declaringType
- The type that declares this type-substituted record component.recordComponentDescription
- The represented record component.visitor
- A visitor that is applied to the parameter type.public MethodDescription.InGenericShape getAccessor()
getAccessor
in interface RecordComponentDescription
getAccessor
in interface RecordComponentDescription.InGenericShape
public TypeDescription.Generic getType()
getType
in interface RecordComponentDescription
public RecordComponentDescription.InDefinedShape asDefined()
asDefined
in interface ByteCodeElement.TypeDependant<RecordComponentDescription.InDefinedShape,RecordComponentDescription.Token>
@Nonnull public TypeDefinition getDeclaringType()
getDeclaringType
in interface DeclaredByType
getDeclaringType
in interface DeclaredByType.WithMandatoryDeclaration
null
if no such type exists.public String getActualName()
getActualName
in interface NamedElement
public AnnotationList getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotationSource
Copyright © 2014–2023. All rights reserved.