Class ImportExtension

java.lang.Object
org.emftext.language.java.extensions.imports.ImportExtension

public class ImportExtension extends Object
  • Constructor Details

    • ImportExtension

      public ImportExtension()
  • Method Details

    • getImportedClassifier

      public static ConcreteClassifier getImportedClassifier(Import me, String name)
      Returns the classifier with the given name located in the namespace defined by the import.
      Parameters:
      me - the import.
      name - the name of the classifier
      Returns:
      imported classifier (proxy)
    • getImportedMembers

      public static EList<NamedElement> getImportedMembers(Import me)
      Returns all imported members assuming the import's namespace identifies a classifier.
      Parameters:
      me - the import.
      Returns:
      list of imported classifiers (proxies)
    • getImportedClassifiers

      public static EList<ConcreteClassifier> getImportedClassifiers(Import me)
      Returns a list of imported classifiers assuming the import's namespace identifies a package.
      Parameters:
      me - the import.
      Returns:
      imported classifier (proxy)