FileDocCategorySizeDatePackage
CompilationUnitTree.javaAPI DocJava SE 6 API1205Tue Jun 10 00:23:24 BST 2008com.sun.source.tree

CompilationUnitTree

public interface CompilationUnitTree implements Tree
Represents the abstract syntax tree for compilation units (source files) and package declarations (package-info.java).
see
"The Java Language Specification, 3rd ed, sections 7.3, and 7.4"
author
Peter von der Ahé
since
1.6

Fields Summary
Constructors Summary
Methods Summary
public java.util.ListgetImports()

public com.sun.source.tree.LineMapgetLineMap()
Gets the line map for this compilation unit, if available. Returns null if the line map is not available.

return
the line map for this compilation unit

public java.util.ListgetPackageAnnotations()

public com.sun.source.tree.ExpressionTreegetPackageName()

public javax.tools.JavaFileObjectgetSourceFile()

public java.util.ListgetTypeDecls()