Class NamespaceAwareElementExtension
java.lang.Object
org.emftext.language.java.extensions.commons.NamespaceAwareElementExtension
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ConcreteClassifier
Assuming the namespace identifies a classifier, that classifier is returned.static String
Converts the namespaces array of the given namespace aware element into a String representation using package (.) and class ($) delimiters.
-
Constructor Details
-
NamespaceAwareElementExtension
public NamespaceAwareElementExtension()
-
-
Method Details
-
getNamespacesAsString
Converts the namespaces array of the given namespace aware element into a String representation using package (.) and class ($) delimiters. The method uses the JavaClasspath to determine for each element of the namespace if it identifies a package or a class.- Parameters:
me
- the given namespace aware element.- Returns:
- single string representation of namespace.
-
getClassifierAtNamespaces
Assuming the namespace identifies a classifier, that classifier is returned.- Parameters:
me
- the namespace aware element.- Returns:
- classifier at namespace.
-