Package Summary  Overview Summary

class:PackageElement [NONE]

method:asType() [ADDED]

method:getQualifiedName() [CHANGED]

  • getQualifiedName

    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 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™Java Language Specification :
    6.7 Fully Qualified Names and Canonical Names
  • getQualifiedName

    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 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
  • getQualifiedName

    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 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 Java Language Specification :
    6.7 Fully Qualified Names and Canonical Names

method:getSimpleName() [NONE]

method:getEnclosedElements() [NONE]

method:isUnnamed() [CHANGED]

  • isUnnamed

    boolean isUnnamed()
    Returns true if this is an unnamed package and false otherwise.
    Returns:
    true if this is an unnamed package and false otherwise
    See The Java™Java Language Specification :
    7.4.2 Unnamed Packages
  • isUnnamed

    boolean isUnnamed()
    Returns true if this is an unnamed package and false otherwise.
    Returns:
    true if this is an unnamed package and false otherwise
    See The Java™ Language Specification :
    7.4.2 Unnamed Packages
  • isUnnamed

    boolean isUnnamed()
    Returns true if this is an unnamed package and false otherwise.
    Returns:
    true if this is an unnamed package and false otherwise
    See Java Language Specification :
    7.4.2 Unnamed Packages

method:getEnclosingElement() [NONE]

  • getEnclosingElement

    Element getEnclosingElement()
    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.
    Specified by:
    getEnclosingElement in interface Element
    Returns:
    the enclosing module or null if no such module exists
    See Also:
    Elements.getPackageOf(javax.lang.model.element.Element)

© 2019 Oracle Corporation and/or its affiliates