Returns the simple (unqualified) name of this element. The
name of a generic type does not include any reference to its
formal type parameters.
For example, the simple name of the type element
java.util.Set<E>
is "Set"
.
If this element represents an unnamed package or unnamed module, an empty name is returned.
If it represents a constructor, the name " <init>
" is returned. If it
represents a static, the name " <clinit>
" is returned.
If it represents an anonymous class or instance initializer, an empty name is returned.
PackageElement.getSimpleName, ExecutableElement.getSimpleName, TypeElement.getSimpleName, VariableElement.getSimpleName, ModuleElement.getSimpleName
@revised 9
@spec JPMS
Diagram: Element