Class SModelLegacy


  • public final class SModelLegacy
    extends Object
    Auxiliary methods that used to constitute API of smodel.SModel and we no longer want to be there. There's no need to keep old code along with the new one in smodel.SModel as it makes the class way too complicated and hard to maintain. Hence, all the stuff deemed legacy moves here, and uses of that API simply get changed to wrap contemporary model with SModelLegacy instance:
       SModel m = ...;
       SModuleReference r = ...;
       m.addLanguage(r)  -->  new SModelLegacy(m).addLanguage(r);
     
    Note, use of SModelLegacy is just a quick migration step, it's advised to replace legacy calls with modern alternatives.
    • Constructor Detail

    • Method Detail

      • addLanguage

        public void addLanguage​(Language language)
      • addModelImport

        public void addModelImport​(SModelReference ref,
                                   boolean firstVersion)
      • addEngagedOnGenerationLanguage

        public void addEngagedOnGenerationLanguage​(SModuleReference ref)
      • removeEngagedOnGenerationLanguage

        public void removeEngagedOnGenerationLanguage​(SModuleReference ref)