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 java.lang.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 Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordComponentDescription.TokenasToken(ElementMatcher<? super TypeDescription> matcher)Resolves this record component to a token where all types are detached.booleanequals(java.lang.Object other)java.lang.StringgetDescriptor()Returns the descriptor of this byte code element.java.lang.StringgetGenericSignature()Returns the generic signature of this byte code element.inthashCode()java.lang.StringtoString()-
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
-
-
-
-
Method Detail
-
asToken
public 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>- Specified by:
asTokenin interfaceRecordComponentDescription- Parameters:
matcher- The matcher to apply for detachment.- Returns:
- An appropriate token.
-
getDescriptor
public java.lang.String getDescriptor()
Returns the descriptor of this byte code element.- Specified by:
getDescriptorin interfaceNamedElement.WithDescriptor- Returns:
- The descriptor of this byte code element.
-
getGenericSignature
@MaybeNull public java.lang.String getGenericSignature()
Returns the generic signature of this byte code element. If this element does not reference generic types or references malformed generic types,nullis returned as a signature.- Specified by:
getGenericSignaturein interfaceNamedElement.WithDescriptor- Returns:
- The generic signature or
nullif this element is not generic.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(@MaybeNull java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-