Interface CompilationUnit
- All Superinterfaces:
Annotable
,Commentable
,EObject
,ImportingElement
,JavaRoot
,NamedElement
,NamespaceAwareElement
,Notifier
- All Known Implementing Classes:
CompilationUnitImpl
A representation of the model object 'Compilation Unit'.
The following features are supported:
- See Also:
- Generated class or method.
- EMF model class or method.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPackageImport
(String packageName) Returns the value of the 'Classifiers' containment reference list.getContainedClassifier
(String name) 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 Details
-
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:
- Generated class or method.
- EMF model class or method.
- containment="true" resolveProxies="true" required="true"
-
getContainedClassifier
- 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
- Generated class or method.
- EMF model class or method.
- nameOfClassToImportRequired="true"
-
addPackageImport
- Generated class or method.
- EMF model class or method.
-