Interface NamedElement

All Known Subinterfaces:
ByteCodeElement, EnumerationDescription, FieldDescription, FieldDescription.InDefinedShape, FieldDescription.InGenericShape, InstrumentedType, InstrumentedType.WithFlexibleName, MethodDescription, MethodDescription.InDefinedShape, MethodDescription.InGenericShape, NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName, PackageDescription, ParameterDescription, ParameterDescription.InDefinedShape, ParameterDescription.InGenericShape, RecordComponentDescription, RecordComponentDescription.InDefinedShape, RecordComponentDescription.InGenericShape, TypeDefinition, TypeDescription, TypeDescription.Generic
All Known Implementing Classes:
EnumerationDescription.AbstractBase, EnumerationDescription.ForLoadedEnumeration, EnumerationDescription.Latent, 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, JavaModule, 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, PackageDescription.AbstractBase, PackageDescription.ForLoadedPackage, PackageDescription.Simple, ParameterDescription.AbstractBase, ParameterDescription.ForLoadedParameter, ParameterDescription.ForLoadedParameter.OfConstructor, ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor, ParameterDescription.ForLoadedParameter.OfLegacyVmMethod, ParameterDescription.ForLoadedParameter.OfMethod, ParameterDescription.InDefinedShape.AbstractBase, ParameterDescription.Latent, ParameterDescription.TypeSubstituting, RecordComponentDescription.AbstractBase, RecordComponentDescription.ForLoadedRecordComponent, RecordComponentDescription.InDefinedShape.AbstractBase, RecordComponentDescription.Latent, RecordComponentDescription.TypeSubstituting, Transformer.ForField.TransformedField, Transformer.ForMethod.TransformedMethod, Transformer.ForMethod.TransformedMethod.TransformedParameter, TypeDescription.AbstractBase, TypeDescription.AbstractBase.OfSimpleType, TypeDescription.AbstractBase.OfSimpleType.WithDelegation, TypeDescription.ArrayProjection, TypeDescription.ForLoadedType, TypeDescription.ForPackageDescription, TypeDescription.Generic.AbstractBase, TypeDescription.Generic.LazyProjection, TypeDescription.Generic.LazyProjection.ForLoadedFieldType, TypeDescription.Generic.LazyProjection.ForLoadedReturnType, TypeDescription.Generic.LazyProjection.ForLoadedSuperClass, TypeDescription.Generic.LazyProjection.OfConstructorParameter, TypeDescription.Generic.LazyProjection.OfMethodParameter, TypeDescription.Generic.LazyProjection.OfRecordComponent, TypeDescription.Generic.LazyProjection.WithEagerNavigation, TypeDescription.Generic.LazyProjection.WithEagerNavigation.OfAnnotatedElement, TypeDescription.Generic.LazyProjection.WithLazyNavigation, TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazyInterfaceType, TypeDescription.Generic.LazyProjection.WithLazyNavigation.LazySuperClass, TypeDescription.Generic.LazyProjection.WithLazyNavigation.OfAnnotatedElement, TypeDescription.Generic.LazyProjection.WithResolvedErasure, TypeDescription.Generic.OfGenericArray, TypeDescription.Generic.OfGenericArray.ForLoadedType, TypeDescription.Generic.OfGenericArray.Latent, TypeDescription.Generic.OfNonGenericType, TypeDescription.Generic.OfNonGenericType.ForErasure, TypeDescription.Generic.OfNonGenericType.ForLoadedType, TypeDescription.Generic.OfNonGenericType.ForReifiedErasure, TypeDescription.Generic.OfNonGenericType.Latent, TypeDescription.Generic.OfParameterizedType, TypeDescription.Generic.OfParameterizedType.ForGenerifiedErasure, TypeDescription.Generic.OfParameterizedType.ForLoadedType, TypeDescription.Generic.OfParameterizedType.ForReifiedType, TypeDescription.Generic.OfParameterizedType.Latent, TypeDescription.Generic.OfTypeVariable, TypeDescription.Generic.OfTypeVariable.ForLoadedType, TypeDescription.Generic.OfTypeVariable.Symbolic, TypeDescription.Generic.OfTypeVariable.WithAnnotationOverlay, TypeDescription.Generic.OfWildcardType, TypeDescription.Generic.OfWildcardType.ForLoadedType, TypeDescription.Generic.OfWildcardType.Latent, TypeDescription.Generic.Visitor.AnnotationStripper.NonAnnotatedTypeVariable, TypeDescription.Generic.Visitor.Substitutor.ForTypeVariableBinding.RetainedMethodTypeVariable, TypeDescription.Latent, TypeDescription.SuperTypeLoading, TypeDescription.SuperTypeLoading.ClassLoadingTypeProjection, TypeList.Generic.ForDetachedTypes.OfTypeVariables.AttachedTypeVariable, TypeList.Generic.OfConstructorExceptionTypes.TypeProjection, TypeList.Generic.OfLoadedInterfaceTypes.TypeProjection, TypeList.Generic.OfMethodExceptionTypes.TypeProjection, TypePool.Default.LazyTypeDescription, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForGenericArray.LazyGenericArray, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForLowerBoundWildcard.LazyLowerBoundWildcard, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.LazyParameterizedType, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForParameterizedType.Nested.LazyParameterizedType, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForPrimitiveType.LazyPrimitiveType, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.AnnotatedTypeVariable, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.Formal.LazyTypeVariable, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForTypeVariable.UnresolvedTypeVariable, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUnboundWildcard.LazyUnboundWildcard, TypePool.Default.LazyTypeDescription.GenericTypeToken.ForUpperBoundWildcard.LazyUpperBoundWildcard, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.Raw.RawAnnotatedType, TypePool.Default.LazyTypeDescription.LazyFieldDescription, TypePool.Default.LazyTypeDescription.LazyMethodDescription, TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyNonGenericReceiverType, TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterDescription, TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterizedReceiverType, TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterizedReceiverType.TypeArgumentList.AnnotatedTypeVariable, TypePool.Default.LazyTypeDescription.LazyPackageDescription, TypePool.Default.LazyTypeDescription.LazyRecordComponentDescription, TypePool.Default.LazyTypeDescription.TokenizedGenericType, TypePool.Default.LazyTypeDescription.TokenizedGenericType.Malformed, TypePool.Default.WithLazyResolution.LazyTypeDescription, TypePool.LazyFacade.LazyTypeDescription, TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge, TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget, TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge

public interface NamedElement
Represents a Java element with a name.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A named element with a class file descriptor and a generic signature.
    static interface 
    A named element with a generic type name.
    static interface 
    Describes a named element where naming the element is optional and an alternative default name is provided if no explicit name is given.
    static interface 
    A named element with a name that has a particular meaning to the Java runtime.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Represents an element without a name in the source code.
    static final String
    Indicates that an element is not named.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the display name of this element as it is found in the source code.
  • Field Details

    • NO_NAME

      @AlwaysNull static final String NO_NAME
      Indicates that an element is not named.
    • EMPTY_NAME

      static final String EMPTY_NAME
      Represents an element without a name in the source code.
      See Also:
  • Method Details

    • getActualName

      String getActualName()
      Returns the display name of this element as it is found in the source code. If no such name exists, an empty string is returned.
      Returns:
      The name of this element as given in a Java program's source code.