PackageTree.java revision 3189:70ac078df098
1139749Simp/*
2116491Sharti * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3116491Sharti * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4116491Sharti *
5116491Sharti * This code is free software; you can redistribute it and/or modify it
6116491Sharti * under the terms of the GNU General Public License version 2 only, as
7116491Sharti * published by the Free Software Foundation.  Oracle designates this
8116491Sharti * particular file as subject to the "Classpath" exception as provided
9116491Sharti * by Oracle in the LICENSE file that accompanied this code.
10116491Sharti *
11116491Sharti * This code is distributed in the hope that it will be useful, but WITHOUT
12116491Sharti * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13116491Sharti * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14116491Sharti * version 2 for more details (a copy is included in the LICENSE file that
15116491Sharti * accompanied this code).
16116491Sharti *
17116491Sharti * You should have received a copy of the GNU General Public License version
18116491Sharti * 2 along with this work; if not, write to the Free Software Foundation,
19116491Sharti * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20116491Sharti *
21116491Sharti * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22116491Sharti * or visit www.oracle.com if you need additional information or have any
23116491Sharti * questions.
24116491Sharti */
25116491Sharti
26116491Shartipackage com.sun.source.tree;
27116491Sharti
28116491Shartiimport java.util.List;
29116491Sharti
30116491Sharti/**
31116491Sharti * Represents the package declaration.
32116491Sharti *
33116491Sharti * @jls sections 7.3, and 7.4
34116519Sharti *
35116519Sharti * @author Paul Govereau
36116519Sharti * @since 9
37116491Sharti */
38116491Sharti@jdk.Exported
39116491Shartipublic interface PackageTree extends Tree {
40116491Sharti    /**
41116491Sharti     * Returns the annotations associated with this package declaration.
42116491Sharti     * @return the annotations
43116491Sharti     */
44116491Sharti    List<? extends AnnotationTree> getAnnotations();
45116491Sharti
46116491Sharti    /**
47116491Sharti     * Returns the name of the package being declared.
48116491Sharti     * @return the name
49116491Sharti     */
50116491Sharti    ExpressionTree getPackageName();
51116491Sharti}
52116491Sharti