package org.jetbrains.mps.samples.DecisionTable; /*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.lang.dataFlow.framework.DataFlowAspectDescriptor; import org.jetbrains.mps.samples.DecisionTable.dataFlow.DataFlowAspectDescriptorImpl; import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; import org.jetbrains.mps.samples.DecisionTable.editor.EditorAspectDescriptorImpl; import jetbrains.mps.smodel.runtime.StructureAspectDescriptor; import jetbrains.mps.smodel.runtime.ConceptPresentationAspect; import org.jetbrains.mps.samples.DecisionTable.structure.ConceptPresentationAspectImpl; import jetbrains.mps.lang.typesystem.runtime.IHelginsDescriptor; import org.jetbrains.mps.samples.DecisionTable.typesystem.TypesystemDescriptor; public class Language extends LanguageRuntime { private final SLanguageId myId; public Language() { myId = SLanguageId.deserialize("65c13e67-09b6-4695-af88-52024b7d2027"); } @Override public String getNamespace() { return "org.jetbrains.mps.samples.DecisionTable"; } @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, "38daf5f6-3ea9-4539-9ff0-4dfa8b2ff692(org.jetbrains.mps.samples.DecisionTable#3863300516938090568)")); } @Override protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) { if (aspectClass == BehaviorAspectDescriptor.class) { return aspectClass.cast(new org.jetbrains.mps.samples.DecisionTable.behavior.BehaviorAspectDescriptor()); } if (aspectClass == ConstraintsAspectDescriptor.class) { return aspectClass.cast(new org.jetbrains.mps.samples.DecisionTable.constraints.ConstraintsAspectDescriptor()); } if (aspectClass == DataFlowAspectDescriptor.class) { return aspectClass.cast(new DataFlowAspectDescriptorImpl()); } if (aspectClass == EditorAspectDescriptor.class) { return aspectClass.cast(new EditorAspectDescriptorImpl()); } if (aspectClass == StructureAspectDescriptor.class) { return aspectClass.cast(new org.jetbrains.mps.samples.DecisionTable.structure.StructureAspectDescriptor()); } if (aspectClass == ConceptPresentationAspect.class) { return aspectClass.cast(new ConceptPresentationAspectImpl()); } if (aspectClass == IHelginsDescriptor.class) { return aspectClass.cast(new TypesystemDescriptor()); } return null; } }