Class ClassifierExtension
- java.lang.Object
-
- org.emftext.language.java.extensions.classifiers.ClassifierExtension
-
public class ClassifierExtension extends Object
-
-
Constructor Summary
Constructors Constructor Description ClassifierExtension()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addImport(Classifier me, String nameOfClassToImport)
Adds an import of the given class to the compilation unit that contains this classifier.static void
addPackageImport(Classifier me, String packageName)
Adds an import of the given package to the compilation unit that contains this classifier.static EList<ConcreteClassifier>
getAllSuperClassifiers(Classifier me)
-
-
-
Method Detail
-
getAllSuperClassifiers
public static EList<ConcreteClassifier> getAllSuperClassifiers(Classifier me)
-
addImport
public static void addImport(Classifier me, String nameOfClassToImport)
Adds an import of the given class to the compilation unit that contains this classifier.- Parameters:
me
- the given class.nameOfClassToImport
- name to the class to import.
-
addPackageImport
public static void addPackageImport(Classifier me, String packageName)
Adds an import of the given package to the compilation unit that contains this classifier.- Parameters:
me
- the given classifier.packageName
- the name of the imported package.
-
-