Package net.bytebuddy.description.type
Interface RecordComponentDescription
-
- All Superinterfaces:
AnnotationSource
,ByteCodeElement.TypeDependant<RecordComponentDescription.InDefinedShape,RecordComponentDescription.Token>
,DeclaredByType
,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, NamedElement.WithDescriptor, AnnotationSource, ByteCodeElement.TypeDependant<RecordComponentDescription.InDefinedShape,RecordComponentDescription.Token>
Represents a component of a Java record.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RecordComponentDescription.AbstractBase
An abstract base implementation for a record component description.static class
RecordComponentDescription.ForLoadedRecordComponent
Represents a loaded record component.static interface
RecordComponentDescription.InDefinedShape
A description of a record component in its defined shape.static interface
RecordComponentDescription.InGenericShape
A description of a record component in generic shape.static class
RecordComponentDescription.Latent
A latent record component description.static class
RecordComponentDescription.Token
A token representing a record component's properties detached from a type.static class
RecordComponentDescription.TypeSubstituting
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.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecordComponentDescription.Token
asToken(ElementMatcher<? super TypeDescription> matcher)
Resolves this record component to a token where all types are detached.MethodDescription
getAccessor()
Returns the accessor for this record component.TypeDescription.Generic
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
getDeclaringType
-
Methods inherited from interface net.bytebuddy.description.NamedElement
getActualName
-
Methods inherited from interface net.bytebuddy.description.NamedElement.WithDescriptor
getDescriptor, getGenericSignature
-
-
-
-
Method Detail
-
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
RecordComponentDescription.Token asToken(ElementMatcher<? super TypeDescription> matcher)
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.
-
-