PackageTree.java revision 3193:3b3bea483542
11590Srgrimes/*
21590Srgrimes * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
31590Srgrimes * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
41590Srgrimes *
51590Srgrimes * This code is free software; you can redistribute it and/or modify it
61590Srgrimes * under the terms of the GNU General Public License version 2 only, as
71590Srgrimes * published by the Free Software Foundation.  Oracle designates this
81590Srgrimes * particular file as subject to the "Classpath" exception as provided
91590Srgrimes * by Oracle in the LICENSE file that accompanied this code.
101590Srgrimes *
111590Srgrimes * This code is distributed in the hope that it will be useful, but WITHOUT
121590Srgrimes * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
131590Srgrimes * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
141590Srgrimes * version 2 for more details (a copy is included in the LICENSE file that
151590Srgrimes * accompanied this code).
161590Srgrimes *
171590Srgrimes * You should have received a copy of the GNU General Public License version
181590Srgrimes * 2 along with this work; if not, write to the Free Software Foundation,
191590Srgrimes * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
201590Srgrimes *
211590Srgrimes * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
221590Srgrimes * or visit www.oracle.com if you need additional information or have any
231590Srgrimes * questions.
241590Srgrimes */
251590Srgrimes
261590Srgrimespackage com.sun.source.tree;
271590Srgrimes
281590Srgrimesimport java.util.List;
291590Srgrimes
3087628Sdwmalone/**
3187628Sdwmalone * Represents the package declaration.
3287628Sdwmalone *
3387628Sdwmalone * @jls sections 7.3, and 7.4
3487628Sdwmalone *
3587628Sdwmalone * @author Paul Govereau
3687241Smarkm * @since 9
3787241Smarkm */
3887241Smarkmpublic interface PackageTree extends Tree {
391590Srgrimes    /**
401590Srgrimes     * Returns the annotations associated with this package declaration.
411590Srgrimes     * @return the annotations
421590Srgrimes     */
431590Srgrimes    List<? extends AnnotationTree> getAnnotations();
441590Srgrimes
451590Srgrimes    /**
461590Srgrimes     * Returns the name of the package being declared.
471590Srgrimes     * @return the name
48100815Sdwmalone     */
49100815Sdwmalone    ExpressionTree getPackageName();
501590Srgrimes}
511590Srgrimes