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.
    Noimplement:
    This interface is not intended to be implemented by clients.
    • Method Detail

      • getPackageName

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

        java.lang.String getDocComment()
        Returns:
        the JavaDoc comment
      • getSourceTypeDeclarations

        java.lang.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:
        Path