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_ConceptMethodReflectiveCall extends TemplateSwitchBase implements TemplateSwitchMapping {
private final Iterable<TemplateReductionRule> rules;
public Switch_switch_ConceptMethodReflectiveCall() {
rules = TemplateUtil.<TemplateReductionRule>asIterable(new Switch_switch_ConceptMethodReflectiveCall.ReductionRule0(), new Switch_switch_ConceptMethodReflectiveCall.ReductionRule1(), new Switch_switch_ConceptMethodReflectiveCall.ReductionRule2(), new Switch_switch_ConceptMethodReflectiveCall.ReductionRule3());
}
public SNodeReference getSwitchNode() {
return new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6862765979525798685");
}
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_6862765979525798711(new SourceSubstituteMacroNodeContext(context, callMacro_dxinld_b0a0a1a5));
TemplateContext context1 = context.subContext(null, callInputNode1);
if (callInputNode1 != null) {
tlist1 = new Template_reduce_ConceptMethodCallReflectiveCommon().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)", "6862765979525798686"), 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_6862765979525798690(new SourceSubstituteMacroNodeContext(context, callMacro_dxinld_b0a0a2a1h));
TemplateContext context1 = context.subContext(null, callInputNode1);
if (callInputNode1 != null) {
tlist1 = new Template_reduce_ConceptMethodCallReflectiveWithThis().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)", "2926695023080382647"), 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_2926695023080382651(new SourceSubstituteMacroNodeContext(context, callMacro_dxinld_b0a0a2a1i));
TemplateContext context1 = context.subContext(null, callInputNode1);
if (callInputNode1 != null) {
tlist1 = new Template_reduce_ConceptMethodCallReflectiveWithThis().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)", "6862765979525798697"), 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_6862765979525910580(new SourceSubstituteMacroNodeContext(context, callMacro_dxinld_b0a0a2a1j));
TemplateContext context1 = context.subContext(null, callInputNode1);
if (callInputNode1 != null) {
tlist1 = new Template_reduce_ConceptMethodCallReflectiveWithSuper().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)", "2926695023080383212"), 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_2926695023080383216(new SourceSubstituteMacroNodeContext(context, callMacro_dxinld_b0a0a2a1k));
TemplateContext context1 = context.subContext(null, callInputNode1);
if (callInputNode1 != null) {
tlist1 = new Template_reduce_ConceptMethodCallReflectiveWithSuper().apply(environment, context1);
}
return tlist1;
}
}
private static SNodePointer callMacro_dxinld_b0a0a1a5 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6862765979525798710");
private static SNodePointer callMacro_dxinld_b0a0a2a1h = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6862765979525798689");
private static SNodePointer callMacro_dxinld_b0a0a2a1i = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "2926695023080382650");
private static SNodePointer callMacro_dxinld_b0a0a2a1j = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6862765979525910579");
private static SNodePointer callMacro_dxinld_b0a0a2a1k = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "2926695023080383215");
}