package jetbrains.mps.lang.smodel.generator.baseLanguage.template.main; /*Generated by MPS */ import jetbrains.mps.generator.runtime.Generated; import jetbrains.mps.generator.runtime.TemplateSwitchBase; import jetbrains.mps.generator.runtime.TemplateSwitchMapping; import jetbrains.mps.generator.runtime.TemplateReductionRule; import jetbrains.mps.generator.runtime.TemplateUtil; import org.jetbrains.mps.openapi.model.SNodeReference; import jetbrains.mps.smodel.SNodePointer; import java.util.Collection; import org.jetbrains.mps.openapi.model.SNode; import jetbrains.mps.generator.runtime.TemplateExecutionEnvironment; import jetbrains.mps.generator.runtime.TemplateContext; import jetbrains.mps.generator.runtime.GenerationException; import jetbrains.mps.generator.template.SourceSubstituteMacroNodeContext; import jetbrains.mps.generator.runtime.ReductionRuleBase; import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory; import org.jetbrains.annotations.NotNull; @Generated public class Switch_switch_ConceptMethodCall extends TemplateSwitchBase implements TemplateSwitchMapping { private final Iterable<TemplateReductionRule> rules; public Switch_switch_ConceptMethodCall() { rules = TemplateUtil.<TemplateReductionRule>asIterable(new Switch_switch_ConceptMethodCall.ReductionRule0(), new Switch_switch_ConceptMethodCall.ReductionRule1(), new Switch_switch_ConceptMethodCall.ReductionRule2(), new Switch_switch_ConceptMethodCall.ReductionRule3()); } public SNodeReference getSwitchNode() { return new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6862765979525735839"); } public SNodeReference getModifiesSwitch() { return null; } public Iterable<TemplateReductionRule> getReductionRules() { return rules; } public Collection<SNode> applyDefault(final TemplateExecutionEnvironment environment, SNodeReference templateSwitch, String mappingLabel, final TemplateContext context) throws GenerationException { Collection<SNode> tlist1 = null; SNode callInputNode1 = QueriesGenerated.sourceNodeQuery_6862765979525743284(new SourceSubstituteMacroNodeContext(context, callMacro_vddlfn_b0a0a1a5)); TemplateContext context1 = context.subContext(null, callInputNode1); if (callInputNode1 != null) { tlist1 = new Template_reduce_ConceptMethodCallCommon().apply(environment, context1); } return tlist1; } public void processNull(TemplateExecutionEnvironment environment, SNodeReference templateSwitch, TemplateContext context) { } public final class ReductionRule0 extends ReductionRuleBase { public ReductionRule0() { super(new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6862765979525735840"), MetaAdapterFactory.getConcept(0xaf65afd8f0dd4942L, 0x87d963a55f2a9db1L, 0x11d434b5be1L, "jetbrains.mps.lang.behavior.structure.ThisNodeExpression"), true); } @Override public Collection<SNode> apply(@NotNull final TemplateContext context) throws GenerationException { final TemplateExecutionEnvironment environment = context.getEnvironment(); Collection<SNode> tlist1 = null; SNode callInputNode1 = QueriesGenerated.sourceNodeQuery_6862765979525741560(new SourceSubstituteMacroNodeContext(context, callMacro_vddlfn_b0a0a2a1h)); TemplateContext context1 = context.subContext(null, callInputNode1); if (callInputNode1 != null) { tlist1 = new Template_reduce_ConceptMethodCallWithThis().apply(environment, context1); } return tlist1; } } public final class ReductionRule1 extends ReductionRuleBase { public ReductionRule1() { super(new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "2926695023080033602"), MetaAdapterFactory.getConcept(0xaf65afd8f0dd4942L, 0x87d963a55f2a9db1L, 0x17a53cfe586da642L, "jetbrains.mps.lang.behavior.structure.ThisConceptExpression"), true); } @Override public Collection<SNode> apply(@NotNull final TemplateContext context) throws GenerationException { final TemplateExecutionEnvironment environment = context.getEnvironment(); Collection<SNode> tlist1 = null; SNode callInputNode1 = QueriesGenerated.sourceNodeQuery_2926695023080033606(new SourceSubstituteMacroNodeContext(context, callMacro_vddlfn_b0a0a2a1i)); TemplateContext context1 = context.subContext(null, callInputNode1); if (callInputNode1 != null) { tlist1 = new Template_reduce_ConceptMethodCallWithThis().apply(environment, context1); } return tlist1; } } public final class ReductionRule2 extends ReductionRuleBase { public ReductionRule2() { super(new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6862765979525735844"), MetaAdapterFactory.getConcept(0xaf65afd8f0dd4942L, 0x87d963a55f2a9db1L, 0x11d434a6558L, "jetbrains.mps.lang.behavior.structure.SuperNodeExpression"), true); } @Override public Collection<SNode> apply(@NotNull final TemplateContext context) throws GenerationException { final TemplateExecutionEnvironment environment = context.getEnvironment(); Collection<SNode> tlist1 = null; SNode callInputNode1 = QueriesGenerated.sourceNodeQuery_6862765979525743046(new SourceSubstituteMacroNodeContext(context, callMacro_vddlfn_b0a0a2a1j)); TemplateContext context1 = context.subContext(null, callInputNode1); if (callInputNode1 != null) { tlist1 = new Template_reduce_ConceptMethodCallWithSuper().apply(environment, context1); } return tlist1; } } public final class ReductionRule3 extends ReductionRuleBase { public ReductionRule3() { super(new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "2926695023080034663"), MetaAdapterFactory.getConcept(0xaf65afd8f0dd4942L, 0x87d963a55f2a9db1L, 0x69a9d7dcb057a7a7L, "jetbrains.mps.lang.behavior.structure.SuperConceptExpression"), true); } @Override public Collection<SNode> apply(@NotNull final TemplateContext context) throws GenerationException { final TemplateExecutionEnvironment environment = context.getEnvironment(); Collection<SNode> tlist1 = null; SNode callInputNode1 = QueriesGenerated.sourceNodeQuery_2926695023080034667(new SourceSubstituteMacroNodeContext(context, callMacro_vddlfn_b0a0a2a1k)); TemplateContext context1 = context.subContext(null, callInputNode1); if (callInputNode1 != null) { tlist1 = new Template_reduce_ConceptMethodCallWithSuper().apply(environment, context1); } return tlist1; } } private static SNodePointer callMacro_vddlfn_b0a0a1a5 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6862765979525743283"); private static SNodePointer callMacro_vddlfn_b0a0a2a1h = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6862765979525741554"); private static SNodePointer callMacro_vddlfn_b0a0a2a1i = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "2926695023080033605"); private static SNodePointer callMacro_vddlfn_b0a0a2a1j = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6862765979525743045"); private static SNodePointer callMacro_vddlfn_b0a0a2a1k = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "2926695023080034666"); }