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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDocComment()PathgetFilePath()Returns the file handle for the given compilation unit.java.lang.StringgetPackageName()java.lang.Iterable<? extends TypeDeclaration>getSourceTypeDeclarations()-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotations
-
Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
-
-
-
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.
-
-