0N/A/*
1879N/A * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
0N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
1472N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1472N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
0N/A * or visit www.oracle.com if you need additional information or have any
0N/A * questions.
0N/A */
1879N/A
1879N/Apackage javax.lang.model.element;
1879N/A
1879N/A/**
1879N/A * Represents a package program element. Provides access to information
1879N/A * about the package and its members.
0N/A *
0N/A * @author Joseph D. Darcy
0N/A * @author Scott Seligman
0N/A * @author Peter von der Ahé
0N/A * @see javax.lang.model.util.Elements#getPackageOf
0N/A * @since 1.6
0N/A */
0N/Apublic interface PackageElement extends Element, QualifiedNameable {
3863N/A
0N/A /**
0N/A * Returns the fully qualified name of this package.
0N/A * This is also known as the package's <i>canonical</i> name.
0N/A *
0N/A * @return the fully qualified name of this package, or an
0N/A * empty name if this is an unnamed package
0N/A * @jls 6.7 Fully Qualified Names and Canonical Names
0N/A */
0N/A Name getQualifiedName();
0N/A
0N/A /**
0N/A * Returns the simple name of this package. For an unnamed
0N/A * package, an empty name is returned
0N/A *
0N/A * @return the simple name of this package or an empty name if
0N/A * this is an unnamed package
0N/A */
0N/A @Override
0N/A Name getSimpleName();
0N/A
0N/A /**
0N/A * Returns {@code true} is this is an unnamed package and {@code
0N/A * false} otherwise.
0N/A *
0N/A * @return {@code true} is this is an unnamed package and {@code
0N/A * false} otherwise
0N/A * @jls 7.4.2 Unnamed Packages
0N/A */
0N/A boolean isUnnamed();
0N/A
0N/A /**
0N/A * Returns {@code null} since a package is not enclosed by another
0N/A * element.
0N/A *
0N/A * @return {@code null}
0N/A */
0N/A @Override
0N/A Element getEnclosingElement();
0N/A}
0N/A