Modifier and Type | Method | Description |
---|---|---|
List<? extends ImportTree> |
getImports() |
Returns the import declarations appearing in this compilation unit.
|
LineMap |
getLineMap() |
Returns the line map for this compilation unit, if available.
|
PackageTree |
getPackage() |
Returns the package tree associated with this compilation unit,
or
null if there is no package declaration. |
List<? extends AnnotationTree> |
getPackageAnnotations() |
Returns the annotations listed on any package declaration
at the head of this compilation unit, or
null if there
is no package declaration. |
ExpressionTree |
getPackageName() |
Returns the name contained in any package declaration
at the head of this compilation unit, or
null if there
is no package declaration. |
JavaFileObject |
getSourceFile() |
Returns the file object containing the source for this compilation unit.
|
List<? extends Tree> |
getTypeDecls() |
Returns the type declarations appearing in this compilation unit.
|
List<? extends AnnotationTree> getPackageAnnotations()
null
if there
is no package declaration.ExpressionTree getPackageName()
null
if there
is no package declaration.PackageTree getPackage()
null
if there is no package declaration.List<? extends ImportTree> getImports()
List<? extends Tree> getTypeDecls()
JavaFileObject getSourceFile()
LineMap getLineMap()
null
if the line map is not available. Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2005, 2016, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b149-1