the fully qualified name of this package, or an empty name if this is an unnamed package
See The Java™ Language Specification :
6.7 Fully Qualified Names and Canonical Names
getQualifiedName
javax.lang.model.element.Name getQualifiedName()
Returns the fully qualified name of this package. This is also known as the package's canonical name.
Specified by:
getQualifiedName in interface javax.lang.model.element.QualifiedNameable
Returns:
the fully qualified name of this package, or an empty name if this is an unnamed package
See The Java™ Language Specification :
6.7 Fully Qualified Names and Canonical Names
getQualifiedName
javax.lang.model.element.Name getQualifiedName()
Returns the fully qualified name of this package. This is also known as the package's canonical name. For an unnamed package , an empty name is returned.
Specified by:
getQualifiedName in interface javax.lang.model.element.QualifiedNameable
API Note:
The fully qualified name of a named package that is not a subpackage of a named package is its simple name. The fully qualified name of a named package that is a subpackage of another named package consists of the fully qualified name of the containing package, followed by ".", followed by the simple (member) name of the subpackage.
Returns:
the fully qualified name of this package, or an empty name if this is an unnamed package
See The Java™ Language Specification :
6.7 Fully Qualified Names and Canonical Names
method:getSimpleName() [CHANGED]
getSimpleName
javax.lang.model.element.Name getSimpleName()
Returns the simple name of this package. For an unnamed package , an empty name is returned.
Returns theenclosingmoduleifsuchamoduleexists;otherwisereturnsnullsince.Onesituationwhereamoduledoesnotexistfor a package is iftheenvironmentdoes not enclosedbyanotherelementincludemodules,suchasanannotationprocessingenvironmentconfiguredforasourceversionwithoutmodules.
Returns the enclosing module if such a module exists; otherwise returns null. One situation where a module does not exist for a package is if the environment does not include modules, such as an annotation processing environment configured for a source version without modules.