Package net.bytebuddy.description
Interface NamedElement.WithDescriptor
- All Superinterfaces:
NamedElement
- All Known Subinterfaces:
ByteCodeElement
,ByteCodeElement.Member
,FieldDescription
,FieldDescription.InDefinedShape
,FieldDescription.InGenericShape
,InstrumentedType
,InstrumentedType.WithFlexibleName
,MethodDescription
,MethodDescription.InDefinedShape
,MethodDescription.InGenericShape
,RecordComponentDescription
,RecordComponentDescription.InDefinedShape
,RecordComponentDescription.InGenericShape
,TypeDescription
- All Known Implementing Classes:
FieldDescription.AbstractBase
,FieldDescription.ForLoadedField
,FieldDescription.InDefinedShape.AbstractBase
,FieldDescription.Latent
,FieldDescription.TypeSubstituting
,Implementation.Context.Default.AbstractPropertyAccessorMethod
,Implementation.Context.Default.AccessorMethod
,Implementation.Context.Default.CacheValueField
,Implementation.Context.Default.FieldGetter
,Implementation.Context.Default.FieldSetter
,InstrumentedType.Default
,InstrumentedType.Frozen
,JavaType.LatentTypeWithSimpleName
,MethodDescription.AbstractBase
,MethodDescription.ForLoadedConstructor
,MethodDescription.ForLoadedMethod
,MethodDescription.InDefinedShape.AbstractBase
,MethodDescription.InDefinedShape.AbstractBase.ForLoadedExecutable
,MethodDescription.Latent
,MethodDescription.Latent.TypeInitializer
,MethodDescription.TypeSubstituting
,MethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor
,MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod
,RecordComponentDescription.AbstractBase
,RecordComponentDescription.ForLoadedRecordComponent
,RecordComponentDescription.InDefinedShape.AbstractBase
,RecordComponentDescription.Latent
,RecordComponentDescription.TypeSubstituting
,Transformer.ForField.TransformedField
,Transformer.ForMethod.TransformedMethod
,TypeDescription.AbstractBase
,TypeDescription.AbstractBase.OfSimpleType
,TypeDescription.AbstractBase.OfSimpleType.WithDelegation
,TypeDescription.ArrayProjection
,TypeDescription.ForLoadedType
,TypeDescription.ForPackageDescription
,TypeDescription.Latent
,TypeDescription.SuperTypeLoading
,TypePool.Default.LazyTypeDescription
,TypePool.Default.LazyTypeDescription.LazyFieldDescription
,TypePool.Default.LazyTypeDescription.LazyMethodDescription
,TypePool.Default.LazyTypeDescription.LazyRecordComponentDescription
,TypePool.Default.WithLazyResolution.LazyTypeDescription
,TypePool.LazyFacade.LazyTypeDescription
,TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge
,TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget
,TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge
- Enclosing interface:
NamedElement
A named element with a class file descriptor and a generic signature.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The generic type signature of a non-generic byte code element.Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
-
Method Summary
Modifier and TypeMethodDescriptionReturns the descriptor of this byte code element.Returns the generic signature of this byte code element.Methods inherited from interface net.bytebuddy.description.NamedElement
getActualName
-
Field Details
-
NON_GENERIC_SIGNATURE
The generic type signature of a non-generic byte code element.
-
-
Method Details
-
getDescriptor
String getDescriptor()Returns the descriptor of this byte code element.- 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.- Returns:
- The generic signature or
null
if this element is not generic.
-