com.sun.source.tree
Interface CompilationUnitTree
- All Superinterfaces:
- Tree
public interface CompilationUnitTree
- 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 classes/interfaces inherited from interface com.sun.source.tree.Tree |
Tree.Kind |
getPackageAnnotations
List<? extends AnnotationTree> getPackageAnnotations()
getPackageName
ExpressionTree getPackageName()
getImports
List<? extends ImportTree> getImports()
getTypeDecls
List<? extends Tree> getTypeDecls()
getSourceFile
JavaFileObject getSourceFile()
getLineMap
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
Submit a bug or feature
Copyright © 2005, 2015, Oracle and/or its affiliates. All rights reserved.