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:
Generated class or method.
EMF model class or method.
  • Method Details

    • getClassifiers

      EList<ConcreteClassifier> getClassifiers()
      Returns the value of the 'Classifiers' containment reference list. The list contents are of type ConcreteClassifier.
      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

      ConcreteClassifier getContainedClassifier(String name)
      Generated class or method.
      EMF model class or method.
    • getClassifiersInSamePackage

      EList<ConcreteClassifier> getClassifiersInSamePackage()
      Specified by:
      getClassifiersInSamePackage in interface JavaRoot
      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.