| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the import declarationsReturns the import declarations appearing in this compilation unit, or an empty list if there are no import declarations. |
| public LineMap | Returns: the line map for this compilation unitReturns the line map for this compilation unit, if available,
or |
| public default ModuleTree | Returns: the module treeReturns the module tree associated with this compilation unit,
or |
| public PackageTree | Returns: the package treeReturns the package tree associated with this compilation unit,
or |
| public List | Returns: the package annotationsReturns the annotations listed on any package declaration
at the head of this compilation unit, or |
| public ExpressionTree | Returns: the package nameReturns the name contained in any package declaration
at the head of this compilation unit, or |
| public JavaFileObject | Returns: the file objectReturns the file object containing the source for this compilation unit. |
| public List | Returns: the type declarationsReturns the type declarations appearing in this compilation unit, or an empty list if there are no type declarations. |
| getImports | back to summary |
|---|---|
| public List Returns the import declarations appearing in this compilation unit, or an empty list if there are no import declarations.
| |
| getLineMap | back to summary |
|---|---|
| public LineMap getLineMap() Returns the line map for this compilation unit, if available,
or
| |
| getModule | back to summary |
|---|---|
| public default ModuleTree getModule() Returns the module tree associated with this compilation unit,
or Implementation Specification This implementation throws
| |
| getPackage | back to summary |
|---|---|
| public PackageTree getPackage() Returns the package tree associated with this compilation unit,
or
| |
| getPackageAnnotations | back to summary |
|---|---|
| public List Returns the annotations listed on any package declaration
at the head of this compilation unit, or
| |
| getPackageName | back to summary |
|---|---|
| public ExpressionTree getPackageName() Returns the name contained in any package declaration
at the head of this compilation unit, or
| |
| getSourceFile | back to summary |
|---|---|
| public JavaFileObject getSourceFile() Returns the file object containing the source for this compilation unit.
| |
| getTypeDecls | back to summary |
|---|---|
| public List Returns the type declarations appearing in this compilation unit, or an empty list if there are no type declarations. The list may also include empty statements resulting from extraneous semicolons. A modular compilation unit does not contain any type declarations. | |