Class ImportExtension
- java.lang.Object
-
- org.emftext.language.java.extensions.imports.ImportExtension
-
public class ImportExtension extends Object
-
-
Constructor Summary
Constructors Constructor Description ImportExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ConcreteClassifier
getImportedClassifier(Import me, String name)
Returns the classifier with the given name located in the namespace defined by the import.static EList<ConcreteClassifier>
getImportedClassifiers(Import me)
Returns a list of imported classifiers assuming the import's namespace identifies a package.static EList<NamedElement>
getImportedMembers(Import me)
Returns all imported members assuming the import's namespace identifies a classifier.
-
-
-
Method Detail
-
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)
-
-