Module org.eclipse.xtend.lib.macro
Interface CompilationUnit
- All Superinterfaces:
AnnotationTarget,Element,NamedElement
Represents a single Xtend file and the root element of the AST.
- Author:
- Sven Efftinge
-
Method Summary
Modifier and TypeMethodDescriptionReturns the file handle for the given compilation unit.Iterable<? extends TypeDeclaration> Methods inherited from interface org.eclipse.xtend.lib.macro.declaration.AnnotationTarget
findAnnotation, getAnnotationsMethods inherited from interface org.eclipse.xtend.lib.macro.declaration.NamedElement
getCompilationUnit, getSimpleName
-
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:
-