Interface NamedElement

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  NamedElement.WithDescriptor
      A named element with a class file descriptor and a generic signature.
      static interface  NamedElement.WithGenericName
      A named element with a generic type name.
      static interface  NamedElement.WithOptionalName
      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  NamedElement.WithRuntimeName
      A named element with a name that has a particular meaning to the Java runtime.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String EMPTY_NAME
      Represents an element without a name in the source code.
      static java.lang.String NO_NAME
      Indicates that an element is not named.
    • Field Detail

      • NO_NAME

        static final java.lang.String NO_NAME
        Indicates that an element is not named.
      • EMPTY_NAME

        static final java.lang.String EMPTY_NAME
        Represents an element without a name in the source code.
        See Also:
        Constant Field Values
    • Method Detail

      • getActualName

        java.lang.String getActualName()
        Returns the 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.