package testCustomAnalyzer.structure; /*Generated by MPS */ import jetbrains.mps.smodel.runtime.ConceptPresentationAspectBase; import jetbrains.mps.smodel.runtime.ConceptPresentation; import org.jetbrains.annotations.Nullable; import org.jetbrains.mps.openapi.language.SAbstractConcept; import jetbrains.mps.smodel.runtime.ConceptPresentationBuilder; public class ConceptPresentationAspectImpl extends ConceptPresentationAspectBase { private ConceptPresentation props_Child; private ConceptPresentation props_OtherChild; private ConceptPresentation props_OtherRoot; private ConceptPresentation props_OtherSubChild; private ConceptPresentation props_Root; @Override @Nullable public ConceptPresentation getDescriptor(SAbstractConcept c) { StructureAspectDescriptor structureDescriptor = (StructureAspectDescriptor) myLanguageRuntime.getAspect(jetbrains.mps.smodel.runtime.StructureAspectDescriptor.class); switch (structureDescriptor.internalIndex(c)) { case LanguageConceptSwitch.Child: if (props_Child == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_Child = cpb.create(); } return props_Child; case LanguageConceptSwitch.OtherChild: if (props_OtherChild == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_OtherChild = cpb.create(); } return props_OtherChild; case LanguageConceptSwitch.OtherRoot: if (props_OtherRoot == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_OtherRoot = cpb.create(); } return props_OtherRoot; case LanguageConceptSwitch.OtherSubChild: if (props_OtherSubChild == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_OtherSubChild = cpb.create(); } return props_OtherSubChild; case LanguageConceptSwitch.Root: if (props_Root == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_Root = cpb.create(); } return props_Root; } return null; } }