KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > lang > model > element > PackageElement


1 /*
2  * @(#)PackageElement.java 1.6 06/08/07
3  *
4  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.lang.model.element;
9
10
11 /**
12  * Represents a package program element. Provides access to information
13  * about the package and its members.
14  *
15  * @author Joseph D. Darcy
16  * @author Scott Seligman
17  * @author Peter von der Ahé
18  * @version 1.6 06/08/07
19  * @see javax.lang.model.util.Elements#getPackageOf
20  * @since 1.6
21  */

22
23 public interface PackageElement extends Element {
24
25     /**
26      * Returns the fully qualified name of this package.
27      * This is also known as the package's <i>canonical</i> name.
28      *
29      * @return the fully qualified name of this package, or an
30      * empty name if this is an unnamed package
31      * @jls3 6.7 Fully Qualified Names and Canonical Names
32      */

33     Name getQualifiedName();
34
35     /**
36      * Returns {@code true} is this is an unnamed package and {@code
37      * false} otherwise.
38      *
39      * @return {@code true} is this is an unnamed package and {@code
40      * false} otherwise
41      * @jls3 7.4.2 Unnamed Packages
42      */

43     boolean isUnnamed();
44 }
45
Popular Tags