Package org.eclipse.gmt.modisco.java
Interface CompilationUnit
- All Superinterfaces:
ASTNode,org.eclipse.emf.ecore.EObject,NamedElement,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
CompilationUnitImpl
public interface CompilationUnit extends NamedElement
A representation of the model object 'Compilation Unit'.
The following features are supported:
- See Also:
JavaPackage.getCompilationUnit()
-
Method Summary
Modifier and Type Method Description org.eclipse.emf.common.util.EList<Comment>getCommentList()Returns the value of the 'Comment List' reference list.org.eclipse.emf.common.util.EList<ImportDeclaration>getImports()Returns the value of the 'Imports' containment reference list.StringgetOriginalFilePath()Returns the value of the 'Original File Path' attribute.PackagegetPackage()Returns the value of the 'Package' reference.org.eclipse.emf.common.util.EList<AbstractTypeDeclaration>getTypes()Returns the value of the 'Types' reference list.voidsetOriginalFilePath(String value)Sets the value of the 'Original File Path' attribute.voidsetPackage(Package value)Sets the value of the 'Package' reference.Methods inherited from interface org.eclipse.gmt.modisco.java.ASTNode
getComments, getOriginalClassFile, getOriginalCompilationUnit, setOriginalClassFile, setOriginalCompilationUnitMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.gmt.modisco.java.NamedElement
getName, getUsagesInImports, isProxy, setName, setProxyMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getOriginalFilePath
String getOriginalFilePath()Returns the value of the 'Original File Path' attribute.- Returns:
- the value of the 'Original File Path' attribute.
- See Also:
setOriginalFilePath(String),JavaPackage.getCompilationUnit_OriginalFilePath()
-
setOriginalFilePath
Sets the value of the 'Original File Path' attribute.- Parameters:
value- the new value of the 'Original File Path' attribute.- See Also:
getOriginalFilePath()
-
getCommentList
org.eclipse.emf.common.util.EList<Comment> getCommentList()Returns the value of the 'Comment List' reference list. The list contents are of typeComment.- Returns:
- the value of the 'Comment List' reference list.
- See Also:
JavaPackage.getCompilationUnit_CommentList()
-
getImports
org.eclipse.emf.common.util.EList<ImportDeclaration> getImports()Returns the value of the 'Imports' containment reference list. The list contents are of typeImportDeclaration.- Returns:
- the value of the 'Imports' containment reference list.
- See Also:
JavaPackage.getCompilationUnit_Imports()
-
getPackage
Package getPackage()Returns the value of the 'Package' reference.- Returns:
- the value of the 'Package' reference.
- See Also:
setPackage(org.eclipse.gmt.modisco.java.Package),JavaPackage.getCompilationUnit_Package()
-
setPackage
Sets the value of the 'Package' reference.- Parameters:
value- the new value of the 'Package' reference.- See Also:
getPackage()
-
getTypes
org.eclipse.emf.common.util.EList<AbstractTypeDeclaration> getTypes()Returns the value of the 'Types' reference list. The list contents are of typeAbstractTypeDeclaration.- Returns:
- the value of the 'Types' reference list.
- See Also:
JavaPackage.getCompilationUnit_Types()
-