You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
2.0 KiB
93 lines
2.0 KiB
/*
|
|
* Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
|
|
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*
|
|
*/
|
|
|
|
package javax.lang.model.element;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Represents a package program element. Provides access to information
|
|
* about the package and its members.
|
|
*
|
|
* @author Joseph D. Darcy
|
|
* @author Scott Seligman
|
|
* @author Peter von der Ahé
|
|
* @see javax.lang.model.util.Elements#getPackageOf
|
|
* @since 1.6
|
|
*/
|
|
public interface PackageElement extends Element, QualifiedNameable {
|
|
|
|
/**
|
|
* Returns the fully qualified name of this package.
|
|
* This is also known as the package's <i>canonical</i> name.
|
|
*
|
|
* @return the fully qualified name of this package, or an
|
|
* empty name if this is an unnamed package
|
|
* @jls 6.7 Fully Qualified Names and Canonical Names
|
|
*/
|
|
Name getQualifiedName();
|
|
|
|
/**
|
|
* Returns the simple name of this package. For an unnamed
|
|
* package, an empty name is returned.
|
|
*
|
|
* @return the simple name of this package or an empty name if
|
|
* this is an unnamed package
|
|
*/
|
|
@Override
|
|
Name getSimpleName();
|
|
|
|
/**
|
|
* Returns the {@linkplain NestingKind#TOP_LEVEL top-level}
|
|
* classes and interfaces within this package. Note that
|
|
* subpackages are <em>not</em> considered to be enclosed by a
|
|
* package.
|
|
*
|
|
* @return the top-level classes and interfaces within this
|
|
* package
|
|
*/
|
|
@Override
|
|
List<? extends Element> getEnclosedElements();
|
|
|
|
/**
|
|
* Returns {@code true} is this is an unnamed package and {@code
|
|
* false} otherwise.
|
|
*
|
|
* @return {@code true} is this is an unnamed package and {@code
|
|
* false} otherwise
|
|
* @jls 7.4.2 Unnamed Packages
|
|
*/
|
|
boolean isUnnamed();
|
|
|
|
/**
|
|
* Returns {@code null} since a package is not enclosed by another
|
|
* element.
|
|
*
|
|
* @return {@code null}
|
|
*/
|
|
@Override
|
|
Element getEnclosingElement();
|
|
}
|