Package net.bytebuddy.description.type
Class RecordComponentDescription.AbstractBase
java.lang.Object
net.bytebuddy.description.type.RecordComponentDescription.AbstractBase
- All Implemented Interfaces:
AnnotationSource
,ByteCodeElement.TypeDependant<RecordComponentDescription.InDefinedShape,
,RecordComponentDescription.Token> DeclaredByType
,DeclaredByType.WithMandatoryDeclaration
,NamedElement
,NamedElement.WithDescriptor
,RecordComponentDescription
- Direct Known Subclasses:
RecordComponentDescription.InDefinedShape.AbstractBase
,RecordComponentDescription.TypeSubstituting
- Enclosing interface:
RecordComponentDescription
public abstract static class RecordComponentDescription.AbstractBase
extends Object
implements RecordComponentDescription
An abstract base implementation for a record component description.
-
Nested Class Summary
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
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.RecordComponentDescription
RecordComponentDescription.AbstractBase, RecordComponentDescription.ForLoadedRecordComponent, RecordComponentDescription.InDefinedShape, RecordComponentDescription.InGenericShape, RecordComponentDescription.Latent, RecordComponentDescription.Token, RecordComponentDescription.TypeSubstituting
-
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasToken
(ElementMatcher<? super TypeDescription> matcher) Resolves this record component to a token where all types are detached.boolean
Returns the descriptor of this byte code element.Returns the generic signature of this byte code element.int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
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.type.RecordComponentDescription
getAccessor, getType
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
asToken
Resolves this record component to a token where all types are detached.- Specified by:
asToken
in interfaceByteCodeElement.TypeDependant<RecordComponentDescription.InDefinedShape,
RecordComponentDescription.Token> - Specified by:
asToken
in interfaceRecordComponentDescription
- Parameters:
matcher
- The matcher to apply for detachment.- Returns:
- An appropriate token.
-
getDescriptor
Returns the descriptor of this byte code element.- Specified by:
getDescriptor
in interfaceNamedElement.WithDescriptor
- Returns:
- The descriptor of this byte code element.
-
getGenericSignature
Returns the generic signature of this byte code element. If this element does not reference generic types or references malformed generic types,null
is returned as a signature.- Specified by:
getGenericSignature
in interfaceNamedElement.WithDescriptor
- Returns:
- The generic signature or
null
if this element is not generic.
-
hashCode
public int hashCode() -
equals
-
toString
-