package jetbrains.mps.samples.lambdaCalculus.generator.template.main;
/*Generated by MPS */
import jetbrains.mps.generator.runtime.Generated;
import jetbrains.mps.generator.impl.query.QueryProviderBase;
import jetbrains.mps.generator.template.BaseMappingRuleContext;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
import jetbrains.mps.samples.lambdaCalculus.behavior.LambdaExpression__BehaviorDescriptor;
import jetbrains.mps.samples.lambdaCalculus.behavior.LambdaApplication__BehaviorDescriptor;
import jetbrains.mps.typesystem.inference.TypeChecker;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;
import jetbrains.mps.generator.template.PropertyMacroContext;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SPropertyOperations;
import jetbrains.mps.internal.collections.runtime.ListSequence;
import jetbrains.mps.samples.lambdaCalculus.behavior.LambdaAbstraction__BehaviorDescriptor;
import jetbrains.mps.lang.core.behavior.BaseConcept__BehaviorDescriptor;
import jetbrains.mps.generator.template.ReferenceMacroContext;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.generator.template.SourceSubstituteMacroNodeContext;
import jetbrains.mps.generator.template.SourceSubstituteMacroNodesContext;
import java.util.List;
import java.util.Map;
import jetbrains.mps.generator.impl.query.ReductionRuleCondition;
import java.util.HashMap;
import org.jetbrains.annotations.NotNull;
import jetbrains.mps.generator.impl.query.QueryKey;
import jetbrains.mps.generator.template.ReductionRuleQueryContext;
import jetbrains.mps.generator.impl.GenerationFailureException;
import jetbrains.mps.generator.impl.query.MapRootRuleCondition;
import jetbrains.mps.generator.template.MapRootRuleContext;
import jetbrains.mps.generator.impl.query.SourceNodeQuery;
import jetbrains.mps.generator.impl.query.QueryKeyImpl;
import org.jetbrains.annotations.Nullable;
import jetbrains.mps.generator.impl.query.SourceNodesQuery;
import java.util.Collection;
import jetbrains.mps.util.IterableUtil;
import jetbrains.mps.generator.impl.query.PropertyValueQuery;
import org.jetbrains.mps.openapi.language.SProperty;
import jetbrains.mps.generator.impl.query.ReferenceTargetQuery;
import org.jetbrains.mps.openapi.persistence.PersistenceFacade;
import jetbrains.mps.smodel.SModelUtil_new;
import jetbrains.mps.smodel.SReference;
@Generated
public class QueriesGenerated extends QueryProviderBase {
public QueriesGenerated() {
super(1);
}
public static boolean baseMappingRule_Condition_391739495267627132(final BaseMappingRuleContext _context) {
return (SNodeOperations.getParent(_context.getNode()) == null);
}
public static boolean baseMappingRule_Condition_3851847705188473146(final BaseMappingRuleContext _context) {
return (boolean) LambdaExpression__BehaviorDescriptor.hasParameterRefs_id6qD99pUaonP.invoke(_context.getNode());
}
public static boolean baseMappingRule_Condition_3851847705188496572(final BaseMappingRuleContext _context) {
return !((boolean) LambdaExpression__BehaviorDescriptor.hasParameterRefs_id6qD99pUaonP.invoke(_context.getNode()));
}
public static boolean baseMappingRule_Condition_5066394162984555366(final BaseMappingRuleContext _context) {
return ((boolean) LambdaApplication__BehaviorDescriptor.isFullApplication_id18EhrW3IFXQ.invoke(_context.getNode()));
}
public static boolean baseMappingRule_Condition_1823182225212631178(final BaseMappingRuleContext _context) {
return !((boolean) LambdaApplication__BehaviorDescriptor.isFullApplication_id18EhrW3IFXQ.invoke(_context.getNode()));
}
public static boolean baseMappingRule_Condition_1308935328408191088(final BaseMappingRuleContext _context) {
return LambdaExpression__BehaviorDescriptor.getOuterApplication_id18EhrW3IG0h.invoke(_context.getNode()) == null || !((boolean) LambdaApplication__BehaviorDescriptor.isFullApplication_id18EhrW3IFXQ.invoke(LambdaExpression__BehaviorDescriptor.getOuterApplication_id18EhrW3IG0h.invoke(_context.getNode())));
}
public static boolean baseMappingRule_Condition_1745225562807772209(final BaseMappingRuleContext _context) {
return SNodeOperations.isInstanceOf(TypeChecker.getInstance().getTypeOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x48db75d5dc496b08L, 0x48db75d5dc497af4L, "variable"))), MetaAdapterFactory.getConcept(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x3ee0e3dd7c1afae8L, "jetbrains.mps.samples.lambdaCalculus.structure.FunctionType"));
}
public static boolean baseMappingRule_Condition_1745225562807772232(final BaseMappingRuleContext _context) {
return !(SNodeOperations.isInstanceOf(TypeChecker.getInstance().getTypeOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x48db75d5dc496b08L, 0x48db75d5dc497af4L, "variable"))), MetaAdapterFactory.getConcept(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x3ee0e3dd7c1afae8L, "jetbrains.mps.samples.lambdaCalculus.structure.FunctionType")));
}
public static Object propertyMacro_GetPropertyValue_391739495267627152(final PropertyMacroContext _context) {
return SPropertyOperations.getInteger(_context.getNode(), MetaAdapterFactory.getProperty(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x37d11ba7d7ee2dd5L, 0x37d11ba7d7ee2dd6L, "value"));
}
public static Object propertyMacro_GetPropertyValue_1888188276221892626(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x37d11ba7d7ee2dc8L, 0x37d11ba7d7ee2dc9L, "value"));
}
public static Object propertyMacro_GetPropertyValue_7391442976966625678(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_6139750523307920886(final PropertyMacroContext _context) {
return ("let_" + _context.getNode().getNodeId().toString());
}
public static Object propertyMacro_GetPropertyValue_466391367986582294(final PropertyMacroContext _context) {
return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x448ba254edbfc79fL, 0x74076973acb5af30L, "variable")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_6139750523307920922(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_2985097847315884645(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_2985097847315908604(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_2985097847315916692(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_2167053794906731150(final PropertyMacroContext _context) {
return ListSequence.fromList(LambdaAbstraction__BehaviorDescriptor.getAllVariables_id4pfsEnSNEj7.invoke(_context.getNode())).count();
}
public static Object propertyMacro_GetPropertyValue_2985097847315916808(final PropertyMacroContext _context) {
return (String) BaseConcept__BehaviorDescriptor.getPresentation_idhEwIMiw.invoke(SNodeOperations.cast(TypeChecker.getInstance().getTypeOf(_context.getNode()), MetaAdapterFactory.getConcept(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL, "jetbrains.mps.lang.core.structure.BaseConcept")));
}
public static Object propertyMacro_GetPropertyValue_2167053794906731221(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_199058371937604760(final PropertyMacroContext _context) {
return (String) BaseConcept__BehaviorDescriptor.getPresentation_idhEwIMiw.invoke(SNodeOperations.cast(TypeChecker.getInstance().getTypeOf(_context.getNode()), MetaAdapterFactory.getConcept(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL, "jetbrains.mps.lang.core.structure.BaseConcept")));
}
public static Object propertyMacro_GetPropertyValue_2167053794906731228(final PropertyMacroContext _context) {
return "Function_" + _context.getNode().getNodeId().toString();
}
public static Object propertyMacro_GetPropertyValue_2985097847315884744(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_816130369292752594(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_816130369292752615(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object propertyMacro_GetPropertyValue_816130369292752659(final PropertyMacroContext _context) {
return "lambdaAbstr_" + SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x37d11ba7d7ee2dddL, 0x37d11ba7d7ee2de0L, "function")).getNodeId().toString();
}
public static Object propertyMacro_GetPropertyValue_2985097847315884705(final PropertyMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object referenceMacro_GetReferent_2584857295430340569(final ReferenceMacroContext _context) {
return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x48db75d5dc496b08L, 0x48db75d5dc497af4L, "variable")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object referenceMacro_GetReferent_2584857295430340546(final ReferenceMacroContext _context) {
return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x48db75d5dc496b08L, 0x48db75d5dc497af4L, "variable")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object referenceMacro_GetReferent_2584857295430340722(final ReferenceMacroContext _context) {
return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x48db75d5dc496b08L, 0x48db75d5dc497af4L, "variable")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object referenceMacro_GetReferent_5142899583592522507(final ReferenceMacroContext _context) {
return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x48db75d5dc496b08L, 0x48db75d5dc497af4L, "variable")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static Object referenceMacro_GetReferent_2167053794906731184(final ReferenceMacroContext _context) {
return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));
}
public static SNode sourceNodeQuery_391739495267927128(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x1ad829a6925a095bL, 0x1ad829a6925a095dL, "right"));
}
public static SNode sourceNodeQuery_391739495267927117(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x1ad829a6925a095bL, 0x1ad829a6925a095cL, "left"));
}
public static SNode sourceNodeQuery_1752280634427337342(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x1ad829a6925a095bL, 0x1ad829a6925a095dL, "right"));
}
public static SNode sourceNodeQuery_1752280634427358713(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x1ad829a6925a095bL, 0x1ad829a6925a095cL, "left"));
}
public static SNode sourceNodeQuery_1752280634427358729(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x1ad829a6925a095bL, 0x1ad829a6925a095dL, "right"));
}
public static SNode sourceNodeQuery_1752280634427365227(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x1ad829a6925a095bL, 0x1ad829a6925a095cL, "left"));
}
public static SNode sourceNodeQuery_1752280634427365219(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x1ad829a6925a095bL, 0x1ad829a6925a095dL, "right"));
}
public static SNode sourceNodeQuery_1752280634427365235(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x1ad829a6925a095bL, 0x1ad829a6925a095cL, "left"));
}
public static SNode sourceNodeQuery_14027134441518111(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x3735fdad52687b59L, 0x3735fdad52687b5aL, "expression"));
}
public static SNode sourceNodeQuery_3777111214477850524(final SourceSubstituteMacroNodeContext _context) {
return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x15b75b54f176d1a3L, 0x15b75b54f176d1a4L, "expressions"))).last();
}
public static SNode sourceNodeQuery_1888188276221892656(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x1ad829a6925a095bL, 0x1ad829a6925a095dL, "right"));
}
public static SNode sourceNodeQuery_1888188276221892667(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x1ad829a6925a095bL, 0x1ad829a6925a095cL, "left"));
}
public static SNode sourceNodeQuery_391739495267627127(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x37d11ba7d7fc0389L, 0x37d11ba7d7fc038aL, "expression"));
}
public static SNode sourceNodeQuery_199058371937626084(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x37d11ba7d7ee2dddL, 0x37d11ba7d7ee2de0L, "function"));
}
public static SNode sourceNodeQuery_199058371937625985(final SourceSubstituteMacroNodeContext _context) {
SNode type = TypeChecker.getInstance().getTypeOf(_context.getNode());
if (SNodeOperations.isInstanceOf(type, MetaAdapterFactory.getConcept(0x7a5dda6291404668L, 0xab76d5ed1746f2b2L, 0x113f84956fbL, "jetbrains.mps.lang.typesystem.structure.RuntimeTypeVariable"))) {
return _quotation_createNode_x583g4_a0a1a74();
} else {
return type;
}
}
public static SNode sourceNodeQuery_6139750523307920879(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x448ba254edbfc79fL, 0x448ba254edbfc7a1L, "expression"));
}
public static SNode sourceNodeQuery_6139750523307920899(final SourceSubstituteMacroNodeContext _context) {
return TypeChecker.getInstance().getTypeOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x448ba254edbfc79fL, 0x448ba254edbfc7a0L, "value")));
}
public static SNode sourceNodeQuery_6139750523307920915(final SourceSubstituteMacroNodeContext _context) {
return TypeChecker.getInstance().getTypeOf(_context.getNode());
}
public static SNode sourceNodeQuery_7347119454575546785(final SourceSubstituteMacroNodeContext _context) {
SNode type = TypeChecker.getInstance().getTypeOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x448ba254edbfc79fL, 0x448ba254edbfc7a1L, "expression")));
if (SNodeOperations.isInstanceOf(type, MetaAdapterFactory.getConcept(0x7a5dda6291404668L, 0xab76d5ed1746f2b2L, 0x113f84956fbL, "jetbrains.mps.lang.typesystem.structure.RuntimeTypeVariable"))) {
return _quotation_createNode_x583g4_a0a1a15();
} else {
return type;
}
}
public static SNode sourceNodeQuery_6139750523307920943(final SourceSubstituteMacroNodeContext _context) {
return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x448ba254edbfc79fL, 0x448ba254edbfc7a0L, "value"));
}
public static SNode sourceNodeQuery_2985097847315908623(final SourceSubstituteMacroNodeContext _context) {
SNode type = TypeChecker.getInstance().getTypeOf(_context.getNode());
if (SNodeOperations.isInstanceOf(type, MetaAdapterFactory.getConcept(0x7a5dda6291404668L, 0xab76d5ed1746f2b2L, 0x113f84956fbL, "jetbrains.mps.lang.typesystem.structure.RuntimeTypeVariable"))) {
return _quotation_createNode_x583g4_a0a1a35();
} else {
return type;
}
}
public static SNode sourceNodeQuery_2985097847315908664(final SourceSubstituteMacroNodeContext _context) {
SNode type = TypeChecker.getInstance().getTypeOf(_context.getNode());
if (SNodeOperations.isInstanceOf(type, MetaAdapterFactory.getConcept(0x7a5dda6291404668L, 0xab76d5ed1746f2b2L, 0x113f84956fbL, "jetbrains.mps.lang.typesystem.structure.RuntimeTypeVariable"))) {
return _quotation_createNode_x583g4_a0a1a45();
} else {
return type;
}
}
public static SNode sourceNodeQuery_2985097847315916634(final SourceSubstituteMacroNodeContext _context) {
SNode type = TypeChecker.getInstance().getTypeOf(_context.getNode());
if (SNodeOperations.isInstanceOf(type, MetaAdapterFactory.getConcept(0x7a5dda6291404668L, 0xab76d5ed1746f2b2L, 0x113f84956fbL, "jetbrains.mps.lang.typesystem.structure.RuntimeTypeVariable"))) {
return _quotation_createNode_x583g4_a0a1a55();
} else {
return type;
}
}
public static SNode sourceNodeQuery_2985097847315916658(final SourceSubstituteMacroNodeContext _context) {
SNode type = TypeChecker.getInstance().getTypeOf(_context.getNode());
if (SNodeOperations.isInstanceOf(type, MetaAdapterFactory.getConcept(0x7a5dda6291404668L, 0xab76d5ed1746f2b2L, 0x113f84956fbL, "jetbrains.mps.lang.typesystem.structure.RuntimeTypeVariable"))) {
return _quotation_createNode_x583g4_a0a1a65();
} else {
return type;
}
}
public static SNode sourceNodeQuery_199058371937620120(final SourceSubstituteMacroNodeContext _context) {
return (SNode) LambdaAbstraction__BehaviorDescriptor.getInnerBody_id4pfsEnSN_z2.invoke(_context.getNode());
}
public static SNode sourceNodeQuery_2167053794906731202(final SourceSubstituteMacroNodeContext _context) {
return TypeChecker.getInstance().getTypeOf(_context.getNode());
}
public static SNode sourceNodeQuery_199058371937626325(final SourceSubstituteMacroNodeContext _context) {
return TypeChecker.getInstance().getTypeOf(LambdaAbstraction__BehaviorDescriptor.getInnerBody_id4pfsEnSN_z2.invoke(LambdaApplication__BehaviorDescriptor.getLambdaAbstraction_id4khEFTQ$3U7.invoke(_context.getNode())));
}
public static SNode sourceNodeQuery_816130369292752578(final SourceSubstituteMacroNodeContext _context) {
return TypeChecker.getInstance().getTypeOf(_context.getNode());
}
public static SNode sourceNodeQuery_816130369292752608(final SourceSubstituteMacroNodeContext _context) {
return TypeChecker.getInstance().getTypeOf(_context.getNode());
}
public static SNode sourceNodeQuery_816130369292752650(final SourceSubstituteMacroNodeContext _context) {
return (SNode) LambdaAbstraction__BehaviorDescriptor.getInnerBody_id4pfsEnSN_z2.invoke(LambdaApplication__BehaviorDescriptor.getLambdaAbstraction_id4khEFTQ$3U7.invoke(_context.getNode()));
}
public static Iterable<SNode> sourceNodesQuery_199058371937626104(final SourceSubstituteMacroNodesContext _context) {
return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x7c9e280794ad4afcL, 0xadf0aaee45eb2895L, 0x37d11ba7d7ee2dddL, 0x37d11ba7d7ee2de1L, "argument"));
}
public static Iterable<SNode> sourceNodesQuery_6139750523307920929(final SourceSubstituteMacroNodesContext _context) {
return (List<SNode>) LambdaExpression__BehaviorDescriptor.getOuterVariables_id4zrttnsimEk.invoke(_context.getNode());
}
public static Iterable<SNode> sourceNodesQuery_2985097847315884660(final SourceSubstituteMacroNodesContext _context) {
return (List<SNode>) LambdaExpression__BehaviorDescriptor.getOuterVariables_id4zrttnsimEk.invoke(_context.getNode());
}
public static Iterable<SNode> sourceNodesQuery_2985097847315908583(final SourceSubstituteMacroNodesContext _context) {
return (List<SNode>) LambdaExpression__BehaviorDescriptor.getOuterVariables_id4zrttnsimEk.invoke(_context.getNode());
}
public static Iterable<SNode> sourceNodesQuery_2985097847315916699(final SourceSubstituteMacroNodesContext _context) {
return (List<SNode>) LambdaAbstraction__BehaviorDescriptor.getAllVariables_id4pfsEnSNEj7.invoke(_context.getNode());
}
public static Iterable<SNode> sourceNodesQuery_2167053794906731193(final SourceSubstituteMacroNodesContext _context) {
return (List<SNode>) LambdaExpression__BehaviorDescriptor.getOuterVariables_id4zrttnsimEk.invoke(_context.getNode());
}
public static Iterable<SNode> sourceNodesQuery_2167053794906731209(final SourceSubstituteMacroNodesContext _context) {
return (List<SNode>) LambdaExpression__BehaviorDescriptor.getOuterVariables_id4zrttnsimEk.invoke(_context.getNode());
}
public static Iterable<SNode> sourceNodesQuery_2985097847315884751(final SourceSubstituteMacroNodesContext _context) {
return (List<SNode>) LambdaExpression__BehaviorDescriptor.getOuterVariables_id4zrttnsimEk.invoke(_context.getNode());
}
public static Iterable<SNode> sourceNodesQuery_816130369292752585(final SourceSubstituteMacroNodesContext _context) {
return (List<SNode>) LambdaAbstraction__BehaviorDescriptor.getAllVariables_id4pfsEnSNEj7.invoke(LambdaApplication__BehaviorDescriptor.getLambdaAbstraction_id4khEFTQ$3U7.invoke(_context.getNode()));
}
public static Iterable<SNode> sourceNodesQuery_816130369292752622(final SourceSubstituteMacroNodesContext _context) {
return (List<SNode>) LambdaExpression__BehaviorDescriptor.getOuterVariables_id4zrttnsimEk.invoke(_context.getNode());
}
public static Iterable<SNode> sourceNodesQuery_816130369292752673(final SourceSubstituteMacroNodesContext _context) {
return (List<SNode>) LambdaApplication__BehaviorDescriptor.getArguments_id4pfsEnSNDeV.invoke(_context.getNode());
}
public static Iterable<SNode> sourceNodesQuery_2985097847315884712(final SourceSubstituteMacroNodesContext _context) {
return (List<SNode>) LambdaExpression__BehaviorDescriptor.getOuterVariables_id4zrttnsimEk.invoke(_context.getNode());
}
private final Map<String, ReductionRuleCondition> rrcMethods = new HashMap<String, ReductionRuleCondition>();
{
int i = 0;
rrcMethods.put("4247542765074850151", new QueriesGenerated.RRC(i++));
rrcMethods.put("3851847705188495940", new QueriesGenerated.RRC(i++));
rrcMethods.put("5066394162984528664", new QueriesGenerated.RRC(i++));
rrcMethods.put("1823182225212629771", new QueriesGenerated.RRC(i++));
rrcMethods.put("1308935328408190929", new QueriesGenerated.RRC(i++));
rrcMethods.put("1745225562807772207", new QueriesGenerated.RRC(i++));
rrcMethods.put("1745225562807772230", new QueriesGenerated.RRC(i++));
}
@Override
@NotNull
public ReductionRuleCondition getReductionRuleCondition(@NotNull QueryKey identity) {
final String id = identity.getTemplateNode().getNodeId().toString();
if (!(rrcMethods.containsKey(id))) {
return super.getReductionRuleCondition(identity);
}
return rrcMethods.get(id);
}
private static class RRC implements ReductionRuleCondition {
private final int methodKey;
public RRC(int methodKey) {
this.methodKey = methodKey;
}
@Override
public boolean check(ReductionRuleQueryContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.baseMappingRule_Condition_3851847705188473146(ctx);
case 1:
return QueriesGenerated.baseMappingRule_Condition_3851847705188496572(ctx);
case 2:
return QueriesGenerated.baseMappingRule_Condition_5066394162984555366(ctx);
case 3:
return QueriesGenerated.baseMappingRule_Condition_1823182225212631178(ctx);
case 4:
return QueriesGenerated.baseMappingRule_Condition_1308935328408191088(ctx);
case 5:
return QueriesGenerated.baseMappingRule_Condition_1745225562807772209(ctx);
case 6:
return QueriesGenerated.baseMappingRule_Condition_1745225562807772232(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for rule %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, MapRootRuleCondition> mrrcMethods = new HashMap<String, MapRootRuleCondition>();
{
int i = 0;
mrrcMethods.put("391739495267627131", new QueriesGenerated.MRRC(i++));
}
@Override
@NotNull
public MapRootRuleCondition getMapRootRuleCondition(@NotNull QueryKey identity) {
final String id = identity.getTemplateNode().getNodeId().toString();
if (!(mrrcMethods.containsKey(id))) {
return super.getMapRootRuleCondition(identity);
}
return mrrcMethods.get(id);
}
private static class MRRC implements MapRootRuleCondition {
private final int methodKey;
public MRRC(int methodKey) {
this.methodKey = methodKey;
}
@Override
public boolean check(@NotNull MapRootRuleContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.baseMappingRule_Condition_391739495267627132(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for rule %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, SourceNodeQuery> snqMethods = new HashMap<String, SourceNodeQuery>();
{
int i = 0;
snqMethods.put("391739495267927128", new QueriesGenerated.SNQ(i++));
snqMethods.put("391739495267927117", new QueriesGenerated.SNQ(i++));
snqMethods.put("1752280634427337342", new QueriesGenerated.SNQ(i++));
snqMethods.put("1752280634427358713", new QueriesGenerated.SNQ(i++));
snqMethods.put("1752280634427358729", new QueriesGenerated.SNQ(i++));
snqMethods.put("1752280634427365227", new QueriesGenerated.SNQ(i++));
snqMethods.put("1752280634427365219", new QueriesGenerated.SNQ(i++));
snqMethods.put("1752280634427365235", new QueriesGenerated.SNQ(i++));
snqMethods.put("14027134441518111", new QueriesGenerated.SNQ(i++));
snqMethods.put("3777111214477850524", new QueriesGenerated.SNQ(i++));
snqMethods.put("1888188276221892656", new QueriesGenerated.SNQ(i++));
snqMethods.put("1888188276221892667", new QueriesGenerated.SNQ(i++));
snqMethods.put("391739495267627127", new QueriesGenerated.SNQ(i++));
snqMethods.put("199058371937626084", new QueriesGenerated.SNQ(i++));
snqMethods.put("199058371937625985", new QueriesGenerated.SNQ(i++));
snqMethods.put("6139750523307920879", new QueriesGenerated.SNQ(i++));
snqMethods.put("6139750523307920899", new QueriesGenerated.SNQ(i++));
snqMethods.put("6139750523307920915", new QueriesGenerated.SNQ(i++));
snqMethods.put("7347119454575546785", new QueriesGenerated.SNQ(i++));
snqMethods.put("6139750523307920943", new QueriesGenerated.SNQ(i++));
snqMethods.put("2985097847315908623", new QueriesGenerated.SNQ(i++));
snqMethods.put("2985097847315908664", new QueriesGenerated.SNQ(i++));
snqMethods.put("2985097847315916634", new QueriesGenerated.SNQ(i++));
snqMethods.put("2985097847315916658", new QueriesGenerated.SNQ(i++));
snqMethods.put("199058371937620120", new QueriesGenerated.SNQ(i++));
snqMethods.put("2167053794906731202", new QueriesGenerated.SNQ(i++));
snqMethods.put("199058371937626325", new QueriesGenerated.SNQ(i++));
snqMethods.put("816130369292752578", new QueriesGenerated.SNQ(i++));
snqMethods.put("816130369292752608", new QueriesGenerated.SNQ(i++));
snqMethods.put("816130369292752650", new QueriesGenerated.SNQ(i++));
}
@NotNull
@Override
public SourceNodeQuery getSourceNodeQuery(@NotNull QueryKey identity) {
final String id = ((QueryKeyImpl) identity).getQueryNodeId().toString();
if (!(snqMethods.containsKey(id))) {
return super.getSourceNodeQuery(identity);
}
return snqMethods.get(id);
}
private static class SNQ implements SourceNodeQuery {
private final int methodKey;
public SNQ(int methodKey) {
this.methodKey = methodKey;
}
@Nullable
public SNode evaluate(@NotNull SourceSubstituteMacroNodeContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.sourceNodeQuery_391739495267927128(ctx);
case 1:
return QueriesGenerated.sourceNodeQuery_391739495267927117(ctx);
case 2:
return QueriesGenerated.sourceNodeQuery_1752280634427337342(ctx);
case 3:
return QueriesGenerated.sourceNodeQuery_1752280634427358713(ctx);
case 4:
return QueriesGenerated.sourceNodeQuery_1752280634427358729(ctx);
case 5:
return QueriesGenerated.sourceNodeQuery_1752280634427365227(ctx);
case 6:
return QueriesGenerated.sourceNodeQuery_1752280634427365219(ctx);
case 7:
return QueriesGenerated.sourceNodeQuery_1752280634427365235(ctx);
case 8:
return QueriesGenerated.sourceNodeQuery_14027134441518111(ctx);
case 9:
return QueriesGenerated.sourceNodeQuery_3777111214477850524(ctx);
case 10:
return QueriesGenerated.sourceNodeQuery_1888188276221892656(ctx);
case 11:
return QueriesGenerated.sourceNodeQuery_1888188276221892667(ctx);
case 12:
return QueriesGenerated.sourceNodeQuery_391739495267627127(ctx);
case 13:
return QueriesGenerated.sourceNodeQuery_199058371937626084(ctx);
case 14:
return QueriesGenerated.sourceNodeQuery_199058371937625985(ctx);
case 15:
return QueriesGenerated.sourceNodeQuery_6139750523307920879(ctx);
case 16:
return QueriesGenerated.sourceNodeQuery_6139750523307920899(ctx);
case 17:
return QueriesGenerated.sourceNodeQuery_6139750523307920915(ctx);
case 18:
return QueriesGenerated.sourceNodeQuery_7347119454575546785(ctx);
case 19:
return QueriesGenerated.sourceNodeQuery_6139750523307920943(ctx);
case 20:
return QueriesGenerated.sourceNodeQuery_2985097847315908623(ctx);
case 21:
return QueriesGenerated.sourceNodeQuery_2985097847315908664(ctx);
case 22:
return QueriesGenerated.sourceNodeQuery_2985097847315916634(ctx);
case 23:
return QueriesGenerated.sourceNodeQuery_2985097847315916658(ctx);
case 24:
return QueriesGenerated.sourceNodeQuery_199058371937620120(ctx);
case 25:
return QueriesGenerated.sourceNodeQuery_2167053794906731202(ctx);
case 26:
return QueriesGenerated.sourceNodeQuery_199058371937626325(ctx);
case 27:
return QueriesGenerated.sourceNodeQuery_816130369292752578(ctx);
case 28:
return QueriesGenerated.sourceNodeQuery_816130369292752608(ctx);
case 29:
return QueriesGenerated.sourceNodeQuery_816130369292752650(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, SourceNodesQuery> snsqMethods = new HashMap<String, SourceNodesQuery>();
{
int i = 0;
snsqMethods.put("199058371937626104", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("6139750523307920929", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("2985097847315884660", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("2985097847315908583", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("2985097847315916699", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("2167053794906731193", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("2167053794906731209", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("2985097847315884751", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("816130369292752585", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("816130369292752622", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("816130369292752673", new QueriesGenerated.SNsQ(i++));
snsqMethods.put("2985097847315884712", new QueriesGenerated.SNsQ(i++));
}
@NotNull
@Override
public SourceNodesQuery getSourceNodesQuery(@NotNull QueryKey identity) {
final String id = ((QueryKeyImpl) identity).getQueryNodeId().toString();
if (!(snsqMethods.containsKey(id))) {
return super.getSourceNodesQuery(identity);
}
return snsqMethods.get(id);
}
private static class SNsQ implements SourceNodesQuery {
private final int methodKey;
public SNsQ(int methodKey) {
this.methodKey = methodKey;
}
@NotNull
public Collection<SNode> evaluate(@NotNull SourceSubstituteMacroNodesContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_199058371937626104(ctx));
case 1:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6139750523307920929(ctx));
case 2:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2985097847315884660(ctx));
case 3:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2985097847315908583(ctx));
case 4:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2985097847315916699(ctx));
case 5:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2167053794906731193(ctx));
case 6:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2167053794906731209(ctx));
case 7:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2985097847315884751(ctx));
case 8:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_816130369292752585(ctx));
case 9:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_816130369292752622(ctx));
case 10:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_816130369292752673(ctx));
case 11:
return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2985097847315884712(ctx));
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, PropertyValueQuery> pvqMethods = new HashMap<String, PropertyValueQuery>();
{
int i = 0;
pvqMethods.put("391739495267627151", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, 0xf8cc59b315L, "value"), "23"));
pvqMethods.put("1888188276221892625", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "1"));
pvqMethods.put("7391442976966625677", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "Program"));
pvqMethods.put("6139750523307920885", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "let"));
pvqMethods.put("466391367986582293", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "a"));
pvqMethods.put("6139750523307920921", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "b"));
pvqMethods.put("2985097847315884644", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x111fb5bb1f2L, 0x111fb5dbc49L, "name"), "name"));
pvqMethods.put("2985097847315908603", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "x"));
pvqMethods.put("2985097847315916691", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "y"));
pvqMethods.put("2167053794906731149", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc59b314L, 0xf8cc59b315L, "value"), "1"));
pvqMethods.put("2985097847315916807", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("2167053794906731220", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "a"));
pvqMethods.put("199058371937604759", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""));
pvqMethods.put("2167053794906731227", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "Function"));
pvqMethods.put("2985097847315884743", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x111fb5bb1f2L, 0x111fb5dbc49L, "name"), "name"));
pvqMethods.put("816130369292752593", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "x"));
pvqMethods.put("816130369292752614", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "b"));
pvqMethods.put("816130369292752658", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "lambdaAbstraction"));
pvqMethods.put("2985097847315884704", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x111fb5bb1f2L, 0x111fb5dbc49L, "name"), "name"));
}
@NotNull
@Override
public PropertyValueQuery getPropertyValueQuery(@NotNull QueryKey identity) {
final String id = identity.getTemplateNode().getNodeId().toString();
if (!(pvqMethods.containsKey(id))) {
return super.getPropertyValueQuery(identity);
}
return pvqMethods.get(id);
}
private static class PVQ extends PropertyValueQuery.Base {
private final int methodKey;
/*package*/ PVQ(int methodKey, SProperty property, String templateValue) {
super(property, templateValue);
this.methodKey = methodKey;
}
@Nullable
public Object evaluate(@NotNull PropertyMacroContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.propertyMacro_GetPropertyValue_391739495267627152(ctx);
case 1:
return QueriesGenerated.propertyMacro_GetPropertyValue_1888188276221892626(ctx);
case 2:
return QueriesGenerated.propertyMacro_GetPropertyValue_7391442976966625678(ctx);
case 3:
return QueriesGenerated.propertyMacro_GetPropertyValue_6139750523307920886(ctx);
case 4:
return QueriesGenerated.propertyMacro_GetPropertyValue_466391367986582294(ctx);
case 5:
return QueriesGenerated.propertyMacro_GetPropertyValue_6139750523307920922(ctx);
case 6:
return QueriesGenerated.propertyMacro_GetPropertyValue_2985097847315884645(ctx);
case 7:
return QueriesGenerated.propertyMacro_GetPropertyValue_2985097847315908604(ctx);
case 8:
return QueriesGenerated.propertyMacro_GetPropertyValue_2985097847315916692(ctx);
case 9:
return QueriesGenerated.propertyMacro_GetPropertyValue_2167053794906731150(ctx);
case 10:
return QueriesGenerated.propertyMacro_GetPropertyValue_2985097847315916808(ctx);
case 11:
return QueriesGenerated.propertyMacro_GetPropertyValue_2167053794906731221(ctx);
case 12:
return QueriesGenerated.propertyMacro_GetPropertyValue_199058371937604760(ctx);
case 13:
return QueriesGenerated.propertyMacro_GetPropertyValue_2167053794906731228(ctx);
case 14:
return QueriesGenerated.propertyMacro_GetPropertyValue_2985097847315884744(ctx);
case 15:
return QueriesGenerated.propertyMacro_GetPropertyValue_816130369292752594(ctx);
case 16:
return QueriesGenerated.propertyMacro_GetPropertyValue_816130369292752615(ctx);
case 17:
return QueriesGenerated.propertyMacro_GetPropertyValue_816130369292752659(ctx);
case 18:
return QueriesGenerated.propertyMacro_GetPropertyValue_2985097847315884705(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private final Map<String, ReferenceTargetQuery> rtqMethods = new HashMap<String, ReferenceTargetQuery>();
{
rtqMethods.put("2584857295430340568", new QueriesGenerated.RTQ(0, "a"));
rtqMethods.put("2584857295430340545", new QueriesGenerated.RTQ(1, "a"));
rtqMethods.put("2584857295430340721", new QueriesGenerated.RTQ(2, "a"));
rtqMethods.put("5142899583592522506", new QueriesGenerated.RTQ(3, "f"));
rtqMethods.put("2167053794906731183", new QueriesGenerated.RTQ(4, "a"));
}
@NotNull
@Override
public ReferenceTargetQuery getReferenceTargetQuery(@NotNull QueryKey queryKey) {
final String id = queryKey.getTemplateNode().getNodeId().toString();
if (!(rtqMethods.containsKey(id))) {
return super.getReferenceTargetQuery(queryKey);
}
return rtqMethods.get(id);
}
private static class RTQ extends ReferenceTargetQuery.Base {
private final int methodKey;
/*package*/ RTQ(int methodKey, String templateValue) {
super(templateValue);
this.methodKey = methodKey;
}
@Nullable
public Object evaluate(@NotNull ReferenceMacroContext ctx) throws GenerationFailureException {
switch (methodKey) {
case 0:
return QueriesGenerated.referenceMacro_GetReferent_2584857295430340569(ctx);
case 1:
return QueriesGenerated.referenceMacro_GetReferent_2584857295430340546(ctx);
case 2:
return QueriesGenerated.referenceMacro_GetReferent_2584857295430340722(ctx);
case 3:
return QueriesGenerated.referenceMacro_GetReferent_5142899583592522507(ctx);
case 4:
return QueriesGenerated.referenceMacro_GetReferent_2167053794906731184(ctx);
default:
throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey));
}
}
}
private static SNode _quotation_createNode_x583g4_a0a1a74() {
PersistenceFacade facade = PersistenceFacade.getInstance();
SNode quotedNode_1 = null;
quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0x101de48bf9eL, "ClassifierType"), null, null, false);
quotedNode_1.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference("6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)"), facade.createNodeId("~Object")));
return quotedNode_1;
}
private static SNode _quotation_createNode_x583g4_a0a1a15() {
PersistenceFacade facade = PersistenceFacade.getInstance();
SNode quotedNode_1 = null;
quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0x101de48bf9eL, "ClassifierType"), null, null, false);
quotedNode_1.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference("6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)"), facade.createNodeId("~Object")));
return quotedNode_1;
}
private static SNode _quotation_createNode_x583g4_a0a1a35() {
PersistenceFacade facade = PersistenceFacade.getInstance();
SNode quotedNode_1 = null;
quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0x101de48bf9eL, "ClassifierType"), null, null, false);
quotedNode_1.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference("6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)"), facade.createNodeId("~Object")));
return quotedNode_1;
}
private static SNode _quotation_createNode_x583g4_a0a1a45() {
PersistenceFacade facade = PersistenceFacade.getInstance();
SNode quotedNode_1 = null;
quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0x101de48bf9eL, "ClassifierType"), null, null, false);
quotedNode_1.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference("6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)"), facade.createNodeId("~Object")));
return quotedNode_1;
}
private static SNode _quotation_createNode_x583g4_a0a1a55() {
PersistenceFacade facade = PersistenceFacade.getInstance();
SNode quotedNode_1 = null;
quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0x101de48bf9eL, "ClassifierType"), null, null, false);
quotedNode_1.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference("6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)"), facade.createNodeId("~Object")));
return quotedNode_1;
}
private static SNode _quotation_createNode_x583g4_a0a1a65() {
PersistenceFacade facade = PersistenceFacade.getInstance();
SNode quotedNode_1 = null;
quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0x101de48bf9eL, "ClassifierType"), null, null, false);
quotedNode_1.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_1, facade.createModelReference("6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)"), facade.createNodeId("~Object")));
return quotedNode_1;
}
}