Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: javax/ide/model/java/declaration/PackageD.java


1   /*
2    * @(#)PackageD.java
3    */
4   
5   package javax.ide.model.java.declaration;
6   
7   import java.util.Collection;
8   
9   /**
10   * Mirrors a package.
11   *
12   * @author Andy Yu
13   */
14  public interface PackageD
15    extends Declaration, HasNameD, HasAnnotationsD
16  {
17    /**
18     * Gets the fully qualified package name in "source format".
19     *
20     * @return The fully qualified package name.
21     *
22     * @see TypeD#getSourceName()
23     */
24    public String getSourceName();
25  
26    /**
27     * Gets all known subpackages.
28     *
29     * @return The collection of package declarations for all known subpackages.
30     * <p/>
31     *
32     * Collection of PackageDs.
33     */
34    public Collection getPackages();
35  
36    /**
37     * Gets the first matching package, null if none.
38     *
39     * @return The package declaration for the first matching package.
40     */
41    public PackageD getPackage(String name);
42  }