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 classRecordComponentDescription.AbstractBaseAn abstract base implementation for a record component description.static classRecordComponentDescription.ForLoadedRecordComponentRepresents a loaded record component.static interfaceRecordComponentDescription.InDefinedShapeA description of a record component in its defined shape.static interfaceRecordComponentDescription.InGenericShapeA description of a record component in generic shape.static classRecordComponentDescription.LatentA latent record component description.static classRecordComponentDescription.TokenA token representing a record component's properties detached from a type.static classRecordComponentDescription.TypeSubstitutingA 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.TokenasToken(ElementMatcher<? super TypeDescription> matcher)Resolves this record component to a token where all types are detached.MethodDescriptiongetAccessor()Returns the accessor for this record component.TypeDescription.GenericgetType()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:
asTokenin interfaceByteCodeElement.TypeDependant<RecordComponentDescription.InDefinedShape,RecordComponentDescription.Token>- Parameters:
matcher- The matcher to apply for detachment.- Returns:
- An appropriate token.
-
-