7db43dc7afb6ed2bdab3b3410b44aca7815a8385
[mps/mps.git] / samples / customizedDebugger / languages / jetbrains.mps.samples.customizedDebugger.Highlevel / source_gen / jetbrains / mps / samples / customizedDebugger / Highlevel / Language.java
1 package jetbrains.mps.samples.customizedDebugger.Highlevel;
2
3 /*Generated by MPS */
4
5 import jetbrains.mps.smodel.language.LanguageRuntime;
6 import jetbrains.mps.smodel.adapter.ids.SLanguageId;
7 import java.util.Collection;
8 import org.jetbrains.mps.openapi.language.SLanguage;
9 import jetbrains.mps.smodel.runtime.ILanguageAspect;
10 import jetbrains.mps.smodel.runtime.BehaviorAspectDescriptor;
11 import jetbrains.mps.smodel.runtime.ConstraintsAspectDescriptor;
12 import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor;
13 import jetbrains.mps.samples.customizedDebugger.Highlevel.editor.EditorAspectDescriptorImpl;
14 import jetbrains.mps.smodel.runtime.StructureAspectDescriptor;
15 import jetbrains.mps.smodel.runtime.ConceptPresentationAspect;
16 import jetbrains.mps.samples.customizedDebugger.Highlevel.structure.ConceptPresentationAspectImpl;
17 import jetbrains.mps.lang.typesystem.runtime.IHelginsDescriptor;
18 import jetbrains.mps.samples.customizedDebugger.Highlevel.typesystem.TypesystemDescriptor;
19
20 public class Language extends LanguageRuntime {
21   private final SLanguageId myId;
22
23   public Language() {
24     myId = SLanguageId.deserialize("bdab7456-dc1d-4dc5-b5bf-ab059630252d");
25   }
26
27   @Override
28   public String getNamespace() {
29     return "jetbrains.mps.samples.customizedDebugger.Highlevel";
30   }
31
32   @Override
33   public int getVersion() {
34     return 0;
35   }
36
37   public SLanguageId getId() {
38     return myId;
39   }
40
41   @Override
42   protected void fillExtendedLanguages(Collection<SLanguage> extendedLanguages) {
43   }
44
45   @Override
46   protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
47     if (aspectClass == BehaviorAspectDescriptor.class) {
48       return aspectClass.cast(new jetbrains.mps.samples.customizedDebugger.Highlevel.behavior.BehaviorAspectDescriptor());
49     }
50     if (aspectClass == ConstraintsAspectDescriptor.class) {
51       return aspectClass.cast(new jetbrains.mps.samples.customizedDebugger.Highlevel.constraints.ConstraintsAspectDescriptor());
52     }
53     if (aspectClass == EditorAspectDescriptor.class) {
54       return aspectClass.cast(new EditorAspectDescriptorImpl());
55     }
56     if (aspectClass == StructureAspectDescriptor.class) {
57       return aspectClass.cast(new jetbrains.mps.samples.customizedDebugger.Highlevel.structure.StructureAspectDescriptor());
58     }
59     if (aspectClass == ConceptPresentationAspect.class) {
60       return aspectClass.cast(new ConceptPresentationAspectImpl());
61     }
62     if (aspectClass == IHelginsDescriptor.class) {
63       return aspectClass.cast(new TypesystemDescriptor());
64     }
65     return null;
66   }
67 }