package jetbrains.mps.testbench.suite;
/*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.openapi.actions.descriptor.ActionAspectDescriptor;
import jetbrains.mps.testbench.suite.actions.ActionAspectDescriptorImpl;
import jetbrains.mps.smodel.runtime.BehaviorAspectDescriptor;
import jetbrains.mps.smodel.runtime.ConstraintsAspectDescriptor;
import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor;
import jetbrains.mps.testbench.suite.editor.EditorAspectDescriptorImpl;
import jetbrains.mps.openapi.intentions.IntentionAspectDescriptor;
import jetbrains.mps.testbench.suite.intentions.IntentionsDescriptor;
import jetbrains.mps.smodel.runtime.StructureAspectDescriptor;
import jetbrains.mps.smodel.runtime.ConceptPresentationAspect;
import jetbrains.mps.testbench.suite.structure.ConceptPresentationAspectImpl;
import jetbrains.mps.lang.typesystem.runtime.IHelginsDescriptor;
import jetbrains.mps.testbench.suite.typesystem.TypesystemDescriptor;
public class Language extends LanguageRuntime {
private final SLanguageId myId;
public Language() {
myId = SLanguageId.deserialize("d3c5a46f-b8c2-47db-ad0a-30b8f19c2055");
}
@Override
public String getNamespace() {
return "jetbrains.mps.testbench.suite";
}
@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, "13b00428-a31f-4c99-b565-ebb37706f8e8(jetbrains.mps.testbench.suite#8749850441865775970)"));
}
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
if (aspectClass == ActionAspectDescriptor.class) {
return aspectClass.cast(new ActionAspectDescriptorImpl());
}
if (aspectClass == BehaviorAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.testbench.suite.behavior.BehaviorAspectDescriptor());
}
if (aspectClass == ConstraintsAspectDescriptor.class) {
return aspectClass.cast(new jetbrains.mps.testbench.suite.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 jetbrains.mps.testbench.suite.structure.StructureAspectDescriptor());
}
if (aspectClass == ConceptPresentationAspect.class) {
return aspectClass.cast(new ConceptPresentationAspectImpl());
}
if (aspectClass == IHelginsDescriptor.class) {
return aspectClass.cast(new TypesystemDescriptor());
}
return null;
}
}