Package net.bytebuddy.description.type
Interface RecordComponentDescription
- All Superinterfaces:
AnnotationSource
,ByteCodeElement.TypeDependant<RecordComponentDescription.InDefinedShape,
,RecordComponentDescription.Token> DeclaredByType
,DeclaredByType.WithMandatoryDeclaration
,NamedElement
,NamedElement.WithDescriptor
- All Known Subinterfaces:
RecordComponentDescription.InDefinedShape
,RecordComponentDescription.InGenericShape
- All Known Implementing Classes:
RecordComponentDescription.AbstractBase
,RecordComponentDescription.ForLoadedRecordComponent
,RecordComponentDescription.InDefinedShape.AbstractBase
,RecordComponentDescription.Latent
,RecordComponentDescription.TypeSubstituting
,TypePool.Default.LazyTypeDescription.LazyRecordComponentDescription
public interface RecordComponentDescription
extends DeclaredByType.WithMandatoryDeclaration, NamedElement.WithDescriptor, AnnotationSource, ByteCodeElement.TypeDependant<RecordComponentDescription.InDefinedShape,RecordComponentDescription.Token>
Represents a component of a Java record.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
An abstract base implementation for a record component description.static class
Represents a loaded record component.static interface
A description of a record component in its defined shape.static interface
A description of a record component in generic shape.static class
A latent record component description.static class
A token representing a record component's properties detached from a type.static class
A type substituting representation of a record component description.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
-
Field Summary
Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
Fields inherited from interface net.bytebuddy.description.NamedElement.WithDescriptor
NON_GENERIC_SIGNATURE
-
Method Summary
Modifier and TypeMethodDescriptionasToken
(ElementMatcher<? super TypeDescription> matcher) Resolves this record component to a token where all types are detached.Returns the accessor for this record component.getType()
Returns the type of the record.Methods inherited from interface net.bytebuddy.description.annotation.AnnotationSource
getDeclaredAnnotations
Methods inherited from interface net.bytebuddy.description.ByteCodeElement.TypeDependant
asDefined
Methods inherited from interface net.bytebuddy.description.DeclaredByType.WithMandatoryDeclaration
getDeclaringType
Methods inherited from interface net.bytebuddy.description.NamedElement
getActualName
Methods inherited from interface net.bytebuddy.description.NamedElement.WithDescriptor
getDescriptor, getGenericSignature
-
Method Details
-
getType
TypeDescription.Generic getType()Returns the type of the record.- Returns:
- The type of the record.
-
getAccessor
MethodDescription getAccessor()Returns the accessor for this record component.- Returns:
- The accessor for this record component.
-
asToken
Resolves this record component to a token where all types are detached.- Specified by:
asToken
in interfaceByteCodeElement.TypeDependant<RecordComponentDescription.InDefinedShape,
RecordComponentDescription.Token> - Parameters:
matcher
- The matcher to apply for detachment.- Returns:
- An appropriate token.
-