18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.source.tree;
27
28 import java.util.List;
29
30 /**
31 * Represents the package declaration.
32 *
33 * @jls sections 7.3, and 7.4
34 *
35 * @author Paul Govereau
36 * @since 9
37 */
38 @jdk.Exported
39 public interface PackageTree extends Tree {
40 /**
41 * Returns the annotations associated with this package declaration.
42 * @return the annotations
43 */
44 List<? extends AnnotationTree> getAnnotations();
45
46 /**
47 * Returns the name of the package being declared.
48 * @return the name
49 */
50 ExpressionTree getPackageName();
51 }
|
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.source.tree;
27
28 import java.util.List;
29
30 /**
31 * Represents the package declaration.
32 *
33 * @jls sections 7.3, and 7.4
34 *
35 * @author Paul Govereau
36 * @since 9
37 */
38 public interface PackageTree extends Tree {
39 /**
40 * Returns the annotations associated with this package declaration.
41 * @return the annotations
42 */
43 List<? extends AnnotationTree> getAnnotations();
44
45 /**
46 * Returns the name of the package being declared.
47 * @return the name
48 */
49 ExpressionTree getPackageName();
50 }
|