src/share/classes/com/sun/mirror/declaration/PackageDeclaration.java

Print this page




  20  *
  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.mirror.declaration;
  27 
  28 
  29 import java.util.Collection;
  30 
  31 
  32 /**
  33  * Represents the declaration of a package.  Provides access to information
  34  * about the package and its members.
  35  *
  36  * <p> {@link com.sun.mirror.util.DeclarationFilter}
  37  * provides a simple way to select just the items of interest
  38  * when a method returns a collection of declarations.
  39  *





  40  * @author Joseph D. Darcy
  41  * @author Scott Seligman
  42  * @since 1.5
  43  */
  44 

  45 public interface PackageDeclaration extends Declaration {
  46 
  47     /**
  48      * Returns the fully qualified name of this package.
  49      * This is also known as the package's <i>canonical</i> name.
  50      *
  51      * @return the fully qualified name of this package, or the
  52      * empty string if this is the unnamed package
  53      */
  54     String getQualifiedName();
  55 
  56     /**
  57      * Returns the declarations of the top-level classes in this package.
  58      * Interfaces are not included, but enum types are.
  59      *
  60      * @return the declarations of the top-level classes in this package
  61      *
  62      * @see com.sun.mirror.util.DeclarationFilter
  63      */
  64     Collection<ClassDeclaration> getClasses();




  20  *
  21  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  22  * CA 95054 USA or visit www.sun.com if you need additional information or
  23  * have any questions.
  24  */
  25 
  26 package com.sun.mirror.declaration;
  27 
  28 
  29 import java.util.Collection;
  30 
  31 
  32 /**
  33  * Represents the declaration of a package.  Provides access to information
  34  * about the package and its members.
  35  *
  36  * <p> {@link com.sun.mirror.util.DeclarationFilter}
  37  * provides a simple way to select just the items of interest
  38  * when a method returns a collection of declarations.
  39  *
  40  * @deprecated All components of this API have been superseded by the
  41  * standardized annotation processing API.  The replacement for the
  42  * functionality of this interface is {@link
  43  * javax.lang.model.element.PackageElement}.
  44  *
  45  * @author Joseph D. Darcy
  46  * @author Scott Seligman
  47  * @since 1.5
  48  */
  49 @Deprecated
  50 @SuppressWarnings("deprecation")
  51 public interface PackageDeclaration extends Declaration {
  52 
  53     /**
  54      * Returns the fully qualified name of this package.
  55      * This is also known as the package's <i>canonical</i> name.
  56      *
  57      * @return the fully qualified name of this package, or the
  58      * empty string if this is the unnamed package
  59      */
  60     String getQualifiedName();
  61 
  62     /**
  63      * Returns the declarations of the top-level classes in this package.
  64      * Interfaces are not included, but enum types are.
  65      *
  66      * @return the declarations of the top-level classes in this package
  67      *
  68      * @see com.sun.mirror.util.DeclarationFilter
  69      */
  70     Collection<ClassDeclaration> getClasses();