Interface CompilationUnit

All Superinterfaces:
AnnotationTarget, Element, NamedElement

@Beta public interface CompilationUnit extends AnnotationTarget
Represents a single Xtend file and the root element of the AST.
Author:
Sven Efftinge
  • Method Details

    • getPackageName

      String getPackageName()
      Returns:
      the package name of this compilation unit.
    • getDocComment

      String getDocComment()
      Returns:
      the JavaDoc comment
    • getSourceTypeDeclarations

      Iterable<? extends TypeDeclaration> getSourceTypeDeclarations()
      Returns:
      the source view of the TypeDeclarations directly contained in the compilation unit.
    • getFilePath

      Path getFilePath()
      Returns the file handle for the given compilation unit.
      Returns:
      the file handle for the given compilation unit.
      See Also: