package jetbrains.mps.baseLanguage.constructors.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_ArgumentClause; private ConceptPresentation props_CustomArgumentClause; private ConceptPresentation props_CustomConstructor; private ConceptPresentation props_CustomConstructorContainer; private ConceptPresentation props_CustomConstructorParameter; private ConceptPresentation props_CustomConstructorParameterReference; private ConceptPresentation props_CustomConstructorUsage; private ConceptPresentation props_ListArgumentsClause; private ConceptPresentation props_ListCustomParameter; private ConceptPresentation props_ListParameterReference; @Override @Nullable public ConceptPresentation getDescriptor(SAbstractConcept c) { StructureAspectDescriptor structureDescriptor = (StructureAspectDescriptor) myLanguageRuntime.getAspect(jetbrains.mps.smodel.runtime.StructureAspectDescriptor.class); switch (structureDescriptor.internalIndex(c)) { case LanguageConceptSwitch.ArgumentClause: if (props_ArgumentClause == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_ArgumentClause = cpb.create(); } return props_ArgumentClause; case LanguageConceptSwitch.CustomArgumentClause: if (props_CustomArgumentClause == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_CustomArgumentClause = cpb.create(); } return props_CustomArgumentClause; case LanguageConceptSwitch.CustomConstructor: if (props_CustomConstructor == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_CustomConstructor = cpb.create(); } return props_CustomConstructor; case LanguageConceptSwitch.CustomConstructorContainer: if (props_CustomConstructorContainer == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_CustomConstructorContainer = cpb.create(); } return props_CustomConstructorContainer; case LanguageConceptSwitch.CustomConstructorParameter: if (props_CustomConstructorParameter == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_CustomConstructorParameter = cpb.create(); } return props_CustomConstructorParameter; case LanguageConceptSwitch.CustomConstructorParameterReference: if (props_CustomConstructorParameterReference == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_CustomConstructorParameterReference = cpb.create(); } return props_CustomConstructorParameterReference; case LanguageConceptSwitch.CustomConstructorUsage: if (props_CustomConstructorUsage == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_CustomConstructorUsage = cpb.create(); } return props_CustomConstructorUsage; case LanguageConceptSwitch.ListArgumentsClause: if (props_ListArgumentsClause == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_ListArgumentsClause = cpb.create(); } return props_ListArgumentsClause; case LanguageConceptSwitch.ListCustomParameter: if (props_ListCustomParameter == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_ListCustomParameter = cpb.create(); } return props_ListCustomParameter; case LanguageConceptSwitch.ListParameterReference: if (props_ListParameterReference == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_ListParameterReference = cpb.create(); } return props_ListParameterReference; } return null; } }