- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description List<? extends ImportTree>getImports()Returns the import declarations appearing in this compilation unit.LineMapgetLineMap()Returns the line map for this compilation unit, if available.PackageTreegetPackage()Returns the package tree associated with this compilation unit, ornullif there is no package declaration.List<? extends AnnotationTree>getPackageAnnotations()Returns the annotations listed on any package declaration at the head of this compilation unit, ornullif there is no package declaration.ExpressionTreegetPackageName()Returns the name contained in any package declaration at the head of this compilation unit, ornullif there is no package declaration.JavaFileObjectgetSourceFile()Returns the file object containing the source for this compilation unit.List<? extends Tree>getTypeDecls()Returns the type declarations appearing in this compilation unit.
 
- 
- 
- 
Method Detail- 
getPackageAnnotationsList<? extends AnnotationTree> getPackageAnnotations() Returns the annotations listed on any package declaration at the head of this compilation unit, ornullif there is no package declaration.- Returns:
- the package annotations
 
 - 
getPackageNameExpressionTree getPackageName() Returns the name contained in any package declaration at the head of this compilation unit, ornullif there is no package declaration.- Returns:
- the package name
 
 - 
getPackagePackageTree getPackage() Returns the package tree associated with this compilation unit, ornullif there is no package declaration.- Returns:
- the package tree
- Since:
- 9
 
 - 
getImportsList<? extends ImportTree> getImports() Returns the import declarations appearing in this compilation unit.- Returns:
- the import declarations
 
 - 
getTypeDeclsList<? extends Tree> getTypeDecls() Returns the type declarations appearing in this compilation unit. The list may also include empty statements resulting from extraneous semicolons.- Returns:
- the type declarations
 
 - 
getSourceFileJavaFileObject getSourceFile() Returns the file object containing the source for this compilation unit.- Returns:
- the file object
 
 - 
getLineMapLineMap getLineMap() Returns the line map for this compilation unit, if available. Returnsnullif the line map is not available.- Returns:
- the line map for this compilation unit
 
 
- 
 
-