- getAnnotations
- getComments
- getDeclaredModule
Gets the declared module if the compilationUnit is "module-info.java"
- getDeclaredModuleReference
Gets the declared module reference if the compilationUnit is "module-info.java"
- getDeclaredPackage
Gets the declared package
- getDeclaredTypeReferences
Gets references to all the types declared in this compilation unit.
- getDeclaredTypes
Gets all the types declared in this compilation unit.
- getFactory
- getFile
Gets the file that corresponds to this compilation unit if any (contains the
source code).
- getImports
Get the imports computed for this CU. WARNING: This method is tagged as
experimental, as its signatu
- getLineSeparatorPositions
- getOriginalSourceCode
Gets the original source code as a string.