langtools/src/share/classes/com/sun/source/tree/CompilationUnitTree.java
changeset 24069 dfb8f11542fc
parent 20612 4761f3ff7afb
child 25287 d2440361b323
equal deleted inserted replaced
24068:d8a1180faaa9 24069:dfb8f11542fc
    39  */
    39  */
    40 @jdk.Exported
    40 @jdk.Exported
    41 public interface CompilationUnitTree extends Tree {
    41 public interface CompilationUnitTree extends Tree {
    42     List<? extends AnnotationTree> getPackageAnnotations();
    42     List<? extends AnnotationTree> getPackageAnnotations();
    43     ExpressionTree getPackageName();
    43     ExpressionTree getPackageName();
       
    44 
       
    45     /**
       
    46      * Return the PackageTree associated with this compilation unit.
       
    47      * @since 1.9
       
    48      */
       
    49     PackageTree getPackage();
    44     List<? extends ImportTree> getImports();
    50     List<? extends ImportTree> getImports();
    45     List<? extends Tree> getTypeDecls();
    51     List<? extends Tree> getTypeDecls();
    46     JavaFileObject getSourceFile();
    52     JavaFileObject getSourceFile();
    47 
    53 
    48     /**
    54     /**