blob: f98512b70f5dce98475236233cb147c5837e729b [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2013 itemis AG (http://www.itemis.eu) and others.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.xtend.lib.macro.declaration;
import org.eclipse.xtend.lib.macro.file.Path;
import com.google.common.annotations.Beta;
/**
*
* Represents a single Xtend file and the root element of the AST.
*
* @author Sven Efftinge
* @noimplement This interface is not intended to be implemented by clients.
*/
@Beta
public interface CompilationUnit extends AnnotationTarget {
/**
* @return the package name of this compilation unit.
*/
String getPackageName();
/**
* @return the JavaDoc comment
*/
String getDocComment();
/**
* @return the source view of the <code>TypeDeclaration</code>s directly contained in the compilation unit.
*/
Iterable<? extends TypeDeclaration> getSourceTypeDeclarations();
/**
* Returns the file handle for the given compilation unit.
*
* @return the file handle for the given compilation unit.
* @see Path
*/
Path getFilePath();
}