Top Description Methods
org.eclipse.xtend.lib.macro.declaration

public Interface CompilationUnit

extends AnnotationTarget
Annotations
@Beta
Imports
org.eclipse.xtend.lib.macro.file.Path, com.google.common.annotations.Beta

Represents a single Xtend file and the root element of the AST.
Author
Sven Efftinge

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the JavaDoc comment
getDocComment
()

public Path

Returns:

the file handle for the given compilation unit.
getFilePath
()

Returns the file handle for the given compilation unit.

public String

Returns:

the package name of this compilation unit.
getPackageName
()

public Iterable<? extends TypeDeclaration>

Returns:

the source view of the TypeDeclarations directly contained in the compilation unit.
getSourceTypeDeclarations
()

Inherited from org.eclipse.xtend.lib.macro.declaration.AnnotationTarget:
findAnnotationgetAnnotations

Method Detail

getDocCommentback to summary
public String getDocComment()
Returns:String

the JavaDoc comment

getFilePathback to summary
public Path getFilePath()

Returns the file handle for the given compilation unit.

Returns:Path

the file handle for the given compilation unit.

See Also
Path
getPackageNameback to summary
public String getPackageName()
Returns:String

the package name of this compilation unit.

getSourceTypeDeclarationsback to summary
public Iterable<? extends TypeDeclaration> getSourceTypeDeclarations()
Returns:Iterable<? extends TypeDeclaration>

the source view of the TypeDeclarations directly contained in the compilation unit.