com.sun.javafx.api.tree
Interface UnitTree

All Superinterfaces:
Tree

public interface UnitTree
extends Tree

Represents the abstract syntax tree for compilation units (source files) and package declarations (package-info.java).

Since:
1.6
See Also:
"The Java Language Specification, 3rd ed, sections 7.3, and 7.4"

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sun.javafx.api.tree.Tree
Tree.JavaFXKind
 
Method Summary
 java.util.List<? extends ImportTree> getImports()
           
 com.sun.source.tree.LineMap getLineMap()
          Gets the line map for this compilation unit, if available.
 ExpressionTree getPackageName()
           
 javax.tools.JavaFileObject getSourceFile()
           
 java.util.List<? extends Tree> getTypeDecls()
           
 
Methods inherited from interface com.sun.javafx.api.tree.Tree
accept, getJavaFXKind, isMissing
 

Method Detail

getPackageName

ExpressionTree getPackageName()

getImports

java.util.List<? extends ImportTree> getImports()

getTypeDecls

java.util.List<? extends Tree> getTypeDecls()

getSourceFile

javax.tools.JavaFileObject getSourceFile()

getLineMap

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

Returns:
the line map for this compilation unit