Modifier and Type | Method and 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.
Copyright © 2005, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-internal+0-2016-02-27-130607.doko.src