Interface CompilationUnit
-
- All Superinterfaces:
Annotable
,Commentable
,EObject
,ImportingElement
,JavaRoot
,NamedElement
,NamespaceAwareElement
,Notifier
- All Known Implementing Classes:
CompilationUnitImpl
public interface CompilationUnit extends JavaRoot
A representation of the model object 'Compilation Unit'.The following features are supported:
- See Also:
ContainersPackage.getCompilationUnit()
- Generated class or method.
- EMF model class or method.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addImport(String nameOfClassToImport)
void
addPackageImport(String packageName)
EList<ConcreteClassifier>
getClassifiers()
Returns the value of the 'Classifiers' containment reference list.EList<ConcreteClassifier>
getClassifiersInSamePackage()
Annotation
getContainedAnnotation()
Class
getContainedClass()
ConcreteClassifier
getContainedClassifier(String name)
Enumeration
getContainedEnumeration()
Interface
getContainedInterface()
-
Methods inherited from interface org.emftext.language.java.annotations.Annotable
getAnnotations
-
Methods inherited from interface org.emftext.language.java.commons.Commentable
addAfterContainingStatement, addBeforeContainingStatement, getAnnotationInterface, getChildrenByEType, getChildrenByType, getClassClass, getConcreteClassifier, getConcreteClassifiers, getContainingAnnotationInstance, getContainingAnonymousClass, getContainingCompilationUnit, getContainingConcreteClassifier, getContainingContainerName, getContainingPackageName, getFirstChildByEType, getFirstChildByType, getLayoutInformations, getLibClass, getLibInterface, getObjectClass, getParentByEType, getParentByType, getParentConcreteClassifier, getStringClass
-
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
-
Methods inherited from interface org.emftext.language.java.imports.ImportingElement
getImports
-
Methods inherited from interface org.emftext.language.java.commons.NamedElement
getName, setName
-
Methods inherited from interface org.emftext.language.java.commons.NamespaceAwareElement
getClassifierAtNamespaces, getNamespaces, getNamespacesAsString
-
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
-
-
-
Method Detail
-
getClassifiers
EList<ConcreteClassifier> getClassifiers()
Returns the value of the 'Classifiers' containment reference list. The list contents are of typeConcreteClassifier
.- Returns:
- the value of the 'Classifiers' containment reference list.
- See Also:
ContainersPackage.getCompilationUnit_Classifiers()
- Generated class or method.
- EMF model class or method.
- containment="true" resolveProxies="true" required="true"
-
getContainedClassifier
ConcreteClassifier getContainedClassifier(String name)
- Generated class or method.
- EMF model class or method.
-
getClassifiersInSamePackage
EList<ConcreteClassifier> getClassifiersInSamePackage()
- Specified by:
getClassifiersInSamePackage
in interfaceJavaRoot
- Generated class or method.
- EMF model class or method.
- kind="operation"
-
getContainedClass
Class getContainedClass()
- Generated class or method.
- EMF model class or method.
- kind="operation"
-
getContainedInterface
Interface getContainedInterface()
- Generated class or method.
- EMF model class or method.
- kind="operation"
-
getContainedAnnotation
Annotation getContainedAnnotation()
- Generated class or method.
- EMF model class or method.
- kind="operation"
-
getContainedEnumeration
Enumeration getContainedEnumeration()
- Generated class or method.
- EMF model class or method.
- kind="operation"
-
addImport
void addImport(String nameOfClassToImport)
- Generated class or method.
- EMF model class or method.
- nameOfClassToImportRequired="true"
-
addPackageImport
void addPackageImport(String packageName)
- Generated class or method.
- EMF model class or method.
-
-