package org.jetbrains.mps.samples.Constants; /*Generated by MPS */ import jetbrains.mps.smodel.language.LanguageRuntime; import jetbrains.mps.smodel.adapter.ids.SLanguageId; import java.util.Collection; import org.jetbrains.mps.openapi.language.SLanguage; import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory; import jetbrains.mps.generator.runtime.TemplateModule; import jetbrains.mps.generator.runtime.TemplateUtil; import jetbrains.mps.smodel.runtime.ILanguageAspect; import jetbrains.mps.smodel.runtime.BehaviorAspectDescriptor; import jetbrains.mps.smodel.runtime.ConstraintsAspectDescriptor; import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; import org.jetbrains.mps.samples.Constants.editor.EditorAspectDescriptorImpl; import jetbrains.mps.openapi.intentions.IntentionAspectDescriptor; import org.jetbrains.mps.samples.Constants.intentions.IntentionsDescriptor; import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; import jetbrains.mps.smodel.runtime.ConceptPresentationAspect; import org.jetbrains.mps.samples.Constants.structure.ConceptPresentationAspectImpl; import jetbrains.mps.lang.typesystem.runtime.IHelginsDescriptor; import org.jetbrains.mps.samples.Constants.typesystem.TypesystemDescriptor; public class Language extends LanguageRuntime { private final SLanguageId myId; public Language() { myId = SLanguageId.deserialize("0d40d465-dded-40d0-8d4c-2c6d177f60d7"); } @Override public String getNamespace() { return "org.jetbrains.mps.samples.Constants"; } @Override public int getVersion() { return 0; } public SLanguageId getId() { return myId; } @Override protected void fillExtendedLanguages(Collection<SLanguage> extendedLanguages) { extendedLanguages.add(MetaAdapterFactory.getLanguage(SLanguageId.deserialize("f3061a53-9226-4cc5-a443-f952ceaf5816"), "jetbrains.mps.baseLanguage")); } @Override public Collection<TemplateModule> getGenerators() { return TemplateUtil.<TemplateModule>asCollection(TemplateUtil.createInterpretedGenerator(this, "e329cce7-da4b-4bfd-ad4e-2f360bbf1aa5(org.jetbrains.mps.samples.Constants#1494751830319061782)")); } @Override protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) { if (aspectClass == BehaviorAspectDescriptor.class) { return aspectClass.cast(new org.jetbrains.mps.samples.Constants.behavior.BehaviorAspectDescriptor()); } if (aspectClass == ConstraintsAspectDescriptor.class) { return aspectClass.cast(new org.jetbrains.mps.samples.Constants.constraints.ConstraintsAspectDescriptor()); } if (aspectClass == EditorAspectDescriptor.class) { return aspectClass.cast(new EditorAspectDescriptorImpl()); } if (aspectClass == IntentionAspectDescriptor.class) { return aspectClass.cast(new IntentionsDescriptor()); } if (aspectClass == StructureAspectDescriptor.class) { return aspectClass.cast(new org.jetbrains.mps.samples.Constants.structure.StructureAspectDescriptor()); } if (aspectClass == ConceptPresentationAspect.class) { return aspectClass.cast(new ConceptPresentationAspectImpl()); } if (aspectClass == IHelginsDescriptor.class) { return aspectClass.cast(new TypesystemDescriptor()); } return null; } }