FileDocCategorySizeDatePackage
PackageElement.javaAPI DocJava SE 6 API1188Tue Jun 10 00:26:10 BST 2008javax.lang.model.element

PackageElement

public interface PackageElement implements Element
Represents a package program element. Provides access to information about the package and its members.
author
Joseph D. Darcy
author
Scott Seligman
author
Peter von der Ahé
version
1.6 06/08/07
see
javax.lang.model.util.Elements#getPackageOf
since
1.6

Fields Summary
Constructors Summary
Methods Summary
public javax.lang.model.element.NamegetQualifiedName()
Returns the fully qualified name of this package. This is also known as the package's canonical name.

return
the fully qualified name of this package, or an empty name if this is an unnamed package
jls3
6.7 Fully Qualified Names and Canonical Names

public booleanisUnnamed()
Returns {@code true} is this is an unnamed package and {@code false} otherwise.

return
{@code true} is this is an unnamed package and {@code false} otherwise
jls3
7.4.2 Unnamed Packages