Class ClassifierExtension


  • public class ClassifierExtension
    extends Object
    • Constructor Detail

      • ClassifierExtension

        public ClassifierExtension()
    • Method Detail

      • 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.