FileDocCategorySizeDatePackage
PackageDeclaration.javaAPI DocJava SE 5 API2257Fri Aug 26 14:55:14 BST 2005com.sun.mirror.declaration

PackageDeclaration

public interface PackageDeclaration implements Declaration
Represents the declaration of a package. Provides access to information about the package and its members.

{@link com.sun.mirror.util.DeclarationFilter} provides a simple way to select just the items of interest when a method returns a collection of declarations.

author
Joseph D. Darcy
author
Scott Seligman
version
1.1 04/01/26
since
1.5

Fields Summary
Constructors Summary
Methods Summary
public java.util.CollectiongetAnnotationTypes()
Returns the declarations of the top-level annotation types in this package.

return
the declarations of the top-level annotation types in this package
see
com.sun.mirror.util.DeclarationFilter

public java.util.CollectiongetClasses()
Returns the declarations of the top-level classes in this package. Interfaces are not included, but enum types are.

return
the declarations of the top-level classes in this package
see
com.sun.mirror.util.DeclarationFilter

public java.util.CollectiongetEnums()
Returns the declarations of the top-level enum types in this package.

return
the declarations of the top-level enum types in this package
see
com.sun.mirror.util.DeclarationFilter

public java.util.CollectiongetInterfaces()
Returns the declarations of the top-level interfaces in this package. Annotation types are included.

return
the declarations of the top-level interfaces in this package
see
com.sun.mirror.util.DeclarationFilter

public java.lang.StringgetQualifiedName()
Returns the fully qualified name of this package. This is also known as the package's canonical name.

return
the fully qualified name of this package, or the empty string if this is the unnamed package