Package Summary  Overview Summary

class:PackageElement [NONE]

  • All Superinterfaces:
    javax.lang.model.AnnotatedConstruct, Element, javax.lang.model.element.QualifiedNameable


    public interface PackageElement
    extends Element, javax.lang.model.element.QualifiedNameable
    Represents a package program element. Provides access to information about the package and its members.
    Since:
    1.6
    See Also:
    Elements.getPackageOf(javax.lang.model.element.Element)

method:getQualifiedName() [CHANGED]

  • 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
  • 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.
    Specified by:
    getSimpleName in interface Element
    Returns:
    the simple name of this package or an empty name if this is an unnamed package
    See Also:
    getSimpleName(), ExecutableElement.getSimpleName(), TypeElement.getSimpleName(), VariableElement.getSimpleName(), ModuleElement.getSimpleName()
  • getSimpleName

    javax.lang.model.element.Name getSimpleName()
    Returns the simple name of this package. For an unnamed package, an empty name is returned.
    Specified by:
    getSimpleName in interface Element
    Returns:
    the simple name of this package or an empty name if this is an unnamed package
    See Also:
    getSimpleName(), ExecutableElement.getSimpleName(), TypeElement.getSimpleName(), VariableElement.getSimpleName()
  • getSimpleName

    javax.lang.model.element.Name getSimpleName()
    Returns the simple name of this package. For an unnamed package , an empty name is returned.
    Specified by:
    getSimpleName in interface Element
    Returns:
    the simple name of this package or an empty name if this is an unnamed package
    See Also:
    getSimpleName(), ExecutableElement.getSimpleName(), TypeElement.getSimpleName(), VariableElement.getSimpleName(), ModuleElement.getSimpleName()

method:getEnclosedElements() [CHANGED]

method:isUnnamed() [CHANGED]

  • isUnnamed

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

    boolean isUnnamed()
    Returns true is this is an unnamed package and false otherwise.
    Returns:
    true is 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 The Java™ Language Specification :
    7.4.2 Unnamed Packages

method:getEnclosingElement() [CHANGED]

  • getEnclosingElement

    Element getEnclosingElement()
    Returns the enclosing module if such a module exists; otherwise returns null since. One situation where a module does not exist for a package is if the environment does not enclosed by another elementinclude 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)
  • 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)