package jetbrains.mps.ide.httpsupport.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.typesystem.inference.TypeChecker; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations; import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations; import jetbrains.mps.generator.template.PropertyMacroContext; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SPropertyOperations; import jetbrains.mps.lang.core.behavior.INamedConcept__BehaviorDescriptor; import org.jetbrains.mps.openapi.model.SNode; import jetbrains.mps.internal.collections.runtime.ListSequence; import jetbrains.mps.ide.httpsupport.behavior.PortProvider__BehaviorDescriptor; import jetbrains.mps.generator.template.ReferenceMacroContext; import jetbrains.mps.generator.template.IfMacroContext; import jetbrains.mps.generator.template.SourceSubstituteMacroNodeContext; import jetbrains.mps.ide.httpsupport.behavior.IParameterConverter__BehaviorDescriptor; import jetbrains.mps.lang.smodel.behavior.SNodeOperation__BehaviorDescriptor; import jetbrains.mps.generator.template.TemplateArgumentContext; import jetbrains.mps.generator.template.SourceSubstituteMacroNodesContext; import jetbrains.mps.internal.collections.runtime.Sequence; import jetbrains.mps.generator.template.TemplateQueryContext; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SModelOperations; 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.MapConfigurationCondition; 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.IfMacroCondition; import jetbrains.mps.generator.impl.query.InlineSwitchCaseCondition; import jetbrains.mps.generator.template.InlineSwitchCaseContext; import jetbrains.mps.generator.impl.query.ReferenceTargetQuery; import jetbrains.mps.generator.impl.query.CallArgumentQuery; import org.jetbrains.mps.openapi.persistence.PersistenceFacade; import jetbrains.mps.smodel.SModelUtil_new; import jetbrains.mps.smodel.SReference; import org.jetbrains.mps.openapi.model.SNodeAccessUtil; import jetbrains.mps.lang.typesystem.runtime.HUtil; @Generated public class QueriesGenerated extends QueryProviderBase { public QueriesGenerated() { super(1); } public static boolean baseMappingRule_Condition_7166526225171406484(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(TypeChecker.getInstance().getTypeOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x5f91294323b64fc1L, 0x5f91294323b6503fL, "buffer"))), _quotation_createNode_x583g4_b0a0a1()); } public static boolean baseMappingRule_Condition_7166526225171447415(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(TypeChecker.getInstance().getTypeOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x5f91294323b64fc1L, 0x5f91294323b6503fL, "buffer"))), _quotation_createNode_x583g4_b0a0a2()); } public static boolean baseMappingRule_Condition_6550075386185843069(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(TypeChecker.getInstance().getTypeOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x5f91294323b64fc1L, 0x5f91294323b6503fL, "buffer"))), _quotation_createNode_x583g4_b0a0a3()); } public static boolean baseMappingRule_Condition_4622937352053956208(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a4()); } public static boolean baseMappingRule_Condition_4622937352054008304(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a5()); } public static boolean baseMappingRule_Condition_4622937352054014465(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a6()); } public static boolean baseMappingRule_Condition_4622937352054016214(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a7()); } public static boolean baseMappingRule_Condition_4622937352053231172(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a8()); } public static boolean baseMappingRule_Condition_4622937352053242887(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a9()); } public static boolean baseMappingRule_Condition_4622937352053257021(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a01()); } public static boolean baseMappingRule_Condition_4622937352053258795(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a11()); } public static boolean baseMappingRule_Condition_4622937352053261836(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a21()); } public static boolean baseMappingRule_Condition_4622937352053261857(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a31()); } public static boolean baseMappingRule_Condition_4622937352053261878(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a41()); } public static boolean baseMappingRule_Condition_4622937352053268616(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a51()); } public static boolean baseMappingRule_Condition_4622937352054436955(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a61()); } public static boolean baseMappingRule_Condition_4622937352054436974(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a71()); } public static boolean baseMappingRule_Condition_4622937352054436993(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a81()); } public static boolean baseMappingRule_Condition_4622937352054437012(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a91()); } public static boolean baseMappingRule_Condition_4622937352054437041(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a02()); } public static boolean baseMappingRule_Condition_4622937352054437062(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a12()); } public static boolean baseMappingRule_Condition_4622937352054437083(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a22()); } public static boolean baseMappingRule_Condition_4622937352054437104(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a32()); } public static boolean baseMappingRule_Condition_4622937352054437125(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a42()); } public static boolean baseMappingRule_Condition_4622937352054437146(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a52()); } public static boolean baseMappingRule_Condition_4622937352054437167(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a62()); } public static boolean baseMappingRule_Condition_4622937352054437186(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a72()); } public static boolean baseMappingRule_Condition_3286885855910526132(final BaseMappingRuleContext _context) { return TypeChecker.getInstance().getSubtypingManager().isSubtype(_context.getNode(), _quotation_createNode_x583g4_b0a0a82()); } public static boolean baseMappingRule_Condition_8659513752524836708(final BaseMappingRuleContext _context) { return SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x116b46a08c4L, 0x116b46b36c4L, "operation")), MetaAdapterFactory.getConcept(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x1962d3cabd393132L, "jetbrains.mps.ide.httpsupport.structure.Node_getURLOperation")); } public static Object propertyMacro_GetPropertyValue_4207974313407676535(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } public static Object propertyMacro_GetPropertyValue_4207974313408000522(final PropertyMacroContext _context) { return INamedConcept__BehaviorDescriptor.getFqName_idhEwIO9y.invoke(_context.getNode()) + "_RequestHandler"; } public static Object propertyMacro_GetPropertyValue_5465812603478881929(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + "_Extension"; } public static Object propertyMacro_GetPropertyValue_7166526225171473286(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x5f91294323b64fc1L, 0x5f91294323b6503dL, "type")); } public static Object propertyMacro_GetPropertyValue_2332657309401958814(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x5f91294323b64fc1L, 0x5f91294323b6503dL, "type")); } public static Object propertyMacro_GetPropertyValue_6550075386185836801(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x5f91294323b64fc1L, 0x5f91294323b6503dL, "type")); } public static Object propertyMacro_GetPropertyValue_6550075386185867055(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x5f91294323b64fc1L, 0x5f91294323b6503dL, "type")); } public static Object propertyMacro_GetPropertyValue_6040064942662606506(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x53d29f104fa64ed8L, 0x53d29f104face44fL, "segment")); } public static Object propertyMacro_GetPropertyValue_8564455257661563529(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + "_RequestHandler"; } public static Object propertyMacro_GetPropertyValue_2332657309400696584(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } public static Object propertyMacro_GetPropertyValue_4622937352054799556(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + "_serialized"; } public static Object propertyMacro_GetPropertyValue_4403308017443232883(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } public static Object propertyMacro_GetPropertyValue_4622937352053698054(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + "_Converter"; } public static Object propertyMacro_GetPropertyValue_4622937352055429559(final PropertyMacroContext _context) { StringBuilder sb = new StringBuilder(); for (SNode segment : ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5ce93L, 0x4027f9073ff5cebeL, "requestHandler")), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4d5ac72154f4d780L, 0x53d29f104fa64ef9L, "queryPrefix")), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x53d29f104fa64ed7L, 0x53d29f104fa64ef2L, "segmetns")))) { sb.append("/"); sb.append(SPropertyOperations.getString(segment, MetaAdapterFactory.getProperty(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x53d29f104fa64ed8L, 0x53d29f104face44fL, "segment"))); } return sb.toString(); } public static Object propertyMacro_GetPropertyValue_4622937352056077047(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5cf17L, 0x4027f9073ff5cf18L, "parameter")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } public static Object propertyMacro_GetPropertyValue_4622937352056223344(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5cf17L, 0x4027f9073ff5cf18L, "parameter")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } public static Object propertyMacro_GetPropertyValue_5111696079055218354(final PropertyMacroContext _context) { return INamedConcept__BehaviorDescriptor.getFqName_idhEwIO9y.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x46f064803fbdb465L, 0x46f064803fbdb466L, "declaration"))) + "_Converter"; } public static Object propertyMacro_GetPropertyValue_5111696079055182096(final PropertyMacroContext _context) { return INamedConcept__BehaviorDescriptor.getFqName_idhEwIO9y.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x46f064803fbdb465L, 0x46f064803fbdb466L, "declaration"))) + "_Converter"; } public static Object propertyMacro_GetPropertyValue_3286885855910478414(final PropertyMacroContext _context) { return INamedConcept__BehaviorDescriptor.getFqName_idhEwIO9y.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x46f064803fbdb465L, 0x46f064803fbdb466L, "declaration"))) + "_Converter"; } public static Object propertyMacro_GetPropertyValue_8009469105144847068(final PropertyMacroContext _context) { return String.valueOf((int) PortProvider__BehaviorDescriptor.getPort_id6WBmrsjA4L4.invoke(_context.getNode())); } public static Object referenceMacro_GetReferent_2332657309401653525(final ReferenceMacroContext _context) { return _context.getOutputNodeByInputNodeAndMappingLabel(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x205f4376c5884e95L, 0x205f4376c5884e96L, "queryParameter")), "QUERY"); } public static Object referenceMacro_GetReferent_4622937352053315502(final ReferenceMacroContext _context) { return _context.getOutputNodeByInputNodeAndMappingLabel(_context.getNode(), "QUERY"); } public static Object referenceMacro_GetReferent_1546095305979190348(final ReferenceMacroContext _context) { return _context.getOutputNodeByInputNodeAndMappingLabel(_context.getNode(), "QUERY"); } public static boolean ifMacro_Condition_1546095305979194296(final IfMacroContext _context) { return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x205f4376c585b439L, 0x205f4376c585b43dL, "required")); } public static boolean ifMacro_Condition_1546095305979810537(final IfMacroContext _context) { return (SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x3d1bb14fe8385046L, 0x2d9d5d4572ccb260L, "defaultValueFunction")) != null); } public static boolean ifMacro_Condition_1546095305979349202(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x46f064803fbdb465L, 0x46f064803fbdb466L, "declaration")), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x3d1bb14fe8385046L, 0x2d9d5d4572ccb260L, "defaultValueFunction")) != null); } public static SNode sourceNodeQuery_7166526225171473294(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x5f91294323b64fc1L, 0x5f91294323b6503fL, "buffer")); } public static SNode sourceNodeQuery_2332657309401909877(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x5f91294323b64fc1L, 0x5f91294323b6503fL, "buffer")); } public static SNode sourceNodeQuery_6550075386186283747(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x5f91294323b64fc1L, 0x5f91294323b6503fL, "buffer")); } public static SNode sourceNodeQuery_4403308017443946770(final SourceSubstituteMacroNodeContext _context) { return (SNode) IParameterConverter__BehaviorDescriptor.getParameterType_id4rKp80ZJrgq.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x205f4376c585b439L, 0x46f064803fbfba0fL, "parameterConverter"))); } public static SNode sourceNodeQuery_5111696079054638591(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x205f4376c585b439L, 0x46f064803fbfba0fL, "parameterConverter")); } public static SNode sourceNodeQuery_1546095305979190366(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x205f4376c585b439L, 0x46f064803fbfba0fL, "parameterConverter")); } public static SNode sourceNodeQuery_4622937352054745357(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054748441(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054748706(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054749052(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054749398(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054750129(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_610507601221221903(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_610507601221224018(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_610507601221224622(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_610507601221225442(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054755189(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054755718(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054756012(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054756370(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054756795(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054757108(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054757421(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_4622937352054757715(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_5111696079055160180(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x3d1bb14fe8385046L, 0x3d1bb14fe83869abL, "parameterType")); } public static SNode sourceNodeQuery_5111696079055165069(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x3d1bb14fe8385046L, 0x3d1bb14fe83869abL, "parameterType")); } public static SNode sourceNodeQuery_1546095305979803184(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x3d1bb14fe8385046L, 0x3d1bb14fe83869abL, "parameterType")); } public static SNode sourceNodeQuery_4622937352056528044(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056531913(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056532486(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056533045(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056533604(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056536963(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056534163(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056534726(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056535289(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056535852(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056536415(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056538112(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056538717(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056539322(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056539927(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056540532(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056541137(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_4622937352056541742(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_8009469105144866708(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5ce93L, 0x6f2759b71399b650L, "port")); } public static SNode sourceNodeQuery_5111696079054651782(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5cf17L, 0x4027f9073ff5cf18L, "parameter")), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x205f4376c585b439L, 0x46f064803fbfba0fL, "parameterConverter")); } public static SNode sourceNodeQuery_4622937352055478675(final SourceSubstituteMacroNodeContext _context) { return (SNode) IParameterConverter__BehaviorDescriptor.getParameterType_id4rKp80ZJrgq.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5cf17L, 0x4027f9073ff5cf18L, "parameter")), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x205f4376c585b439L, 0x46f064803fbfba0fL, "parameterConverter"))); } public static SNode sourceNodeQuery_5111696079054992293(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5cf17L, 0x4027f9073ff5cf1aL, "value")); } public static SNode sourceNodeQuery_5111696079054690026(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x46f064803fbdcb2eL, 0x46f064803fbdcb48L, "parameterType")); } public static SNode sourceNodeQuery_5111696079055222259(final SourceSubstituteMacroNodeContext _context) { return (SNode) IParameterConverter__BehaviorDescriptor.getParameterType_id4rKp80ZJrgq.invoke(_context.getNode()); } public static SNode sourceNodeQuery_5111696079055218366(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("serializedValue")); } public static SNode sourceNodeQuery_5111696079054692933(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x46f064803fbdcb2eL, 0x46f064803fbdcb48L, "parameterType")); } public static SNode sourceNodeQuery_5111696079055213250(final SourceSubstituteMacroNodeContext _context) { return ((SNode) _context.getVariable("value")); } public static SNode sourceNodeQuery_1546095305979485761(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x46f064803fbdcb2eL, 0x46f064803fbdcb48L, "parameterType")); } public static SNode sourceNodeQuery_3286885855910483636(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x46f064803fbdb465L, 0x46f064803fbdb466L, "declaration")), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x3d1bb14fe8385046L, 0x3d1bb14fe83869abL, "parameterType")); } public static SNode sourceNodeQuery_1829257266377441241(final SourceSubstituteMacroNodeContext _context) { return (SNode) SNodeOperation__BehaviorDescriptor.getLeftExpression_idhEwJdGu.invoke(_context.getNode()); } public static SNode sourceNodeQuery_8659513752524931867(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x116b46a08c4L, 0x116b46b36c4L, "operation")); } public static Object templateArgumentQuery_5111696079054902367(final TemplateArgumentContext _context) { return _quotation_createNode_x583g4_a0a411(IParameterConverter__BehaviorDescriptor.getParameterType_id4rKp80ZJrgq.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5cf17L, 0x4027f9073ff5cf18L, "parameter")), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x205f4376c585b439L, 0x46f064803fbfba0fL, "parameterConverter"))), SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5cf17L, 0x4027f9073ff5cf18L, "parameter")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))); } public static Object templateArgumentQuery_5111696079054098866(final TemplateArgumentContext _context) { return _quotation_createNode_x583g4_a0a511(SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + "_serialized"); } public static Iterable<SNode> sourceNodesQuery_6040064942662561774(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4d5ac72154f4d780L, 0x53d29f104fa64ef9L, "queryPrefix")), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x53d29f104fa64ed7L, 0x53d29f104fa64ef2L, "segmetns")); } public static Iterable<SNode> sourceNodesQuery_2332657309400883165(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4d5ac72154f4d780L, 0x205f4376c585d782L, "queryParameters")); } public static Iterable<SNode> sourceNodesQuery_2332657309400728060(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4d5ac72154f4d780L, 0x205f4376c585d782L, "queryParameters")); } public static Iterable<SNode> sourceNodesQuery_6004610301070392427(final SourceSubstituteMacroNodesContext _context) { if ((SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4d5ac72154f4d780L, 0x5354a94149f3cfcaL, "canHandleFunction")) == null)) { return Sequence.<SNode>singleton(_quotation_createNode_x583g4_a0a0a0a911()); } return SLinkOperations.getChildren(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4d5ac72154f4d780L, 0x5354a94149f3cfcaL, "canHandleFunction")), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L, 0x108bbd29b4aL, "body")), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b200L, 0xf8cc6bf961L, "statement")); } public static Iterable<SNode> sourceNodesQuery_8564455257661591745(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4d5ac72154f4d780L, 0x4d5ac72154f835efL, "handleFunction")), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L, 0x108bbd29b4aL, "body")), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b200L, 0xf8cc6bf961L, "statement")); } public static Iterable<SNode> sourceNodesQuery_5111696079055160168(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x3d1bb14fe8385046L, 0x3d1bb14fe83a1b01L, "deserializeFunctinon")), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L, 0x108bbd29b4aL, "body")), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b200L, 0xf8cc6bf961L, "statement")); } public static Iterable<SNode> sourceNodesQuery_5111696079055165079(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x3d1bb14fe8385046L, 0x3d1bb14fe83a1afeL, "serializeFunction")), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L, 0x108bbd29b4aL, "body")), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b200L, 0xf8cc6bf961L, "statement")); } public static Iterable<SNode> sourceNodesQuery_1546095305979803682(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x3d1bb14fe8385046L, 0x2d9d5d4572ccb260L, "defaultValueFunction")), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x108bbca0f48L, 0x108bbd29b4aL, "body")), MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b200L, 0xf8cc6bf961L, "statement")); } public static Iterable<SNode> sourceNodesQuery_4622937352056075756(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5ce93L, 0x4027f9073ff652f7L, "initializer")); } public static Iterable<SNode> sourceNodesQuery_4622937352055440759(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5ce93L, 0x4027f9073ff652f7L, "initializer")); } public static Iterable<SNode> sourceNodesQuery_5111696079054987314(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5ce93L, 0x4027f9073ff652f7L, "initializer")); } public static boolean mappingConfiguration_Condition_4622937352056028159(final TemplateQueryContext _context) { return !(ListSequence.fromList(SModelOperations.nodes(_context.getInputModel(), MetaAdapterFactory.getConcept(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x4027f9073ff5ce93L, "jetbrains.mps.ide.httpsupport.structure.RequestURLBuilderExpression"))).isEmpty()); } public static boolean mappingConfiguration_Condition_1829257266404528854(final TemplateQueryContext _context) { return ListSequence.fromList(SModelOperations.nodes(_context.getInputModel(), MetaAdapterFactory.getConcept(0x817e4e70961e4a95L, 0x98a115e9f32231f1L, 0x1962d3cabd393132L, "jetbrains.mps.ide.httpsupport.structure.Node_getURLOperation"))).isNotEmpty(); } private final Map<String, ReductionRuleCondition> rrcMethods = new HashMap<String, ReductionRuleCondition>(); { int i = 0; rrcMethods.put("4622937352053953343", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352053953366", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352053953378", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352053953390", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352053230778", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352053241494", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352053257007", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352053258781", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352053261822", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352053261843", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352053261864", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352053266215", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054436943", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054436962", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054436981", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054437000", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054437030", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054437048", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054437069", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054437090", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054437111", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054437132", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054437153", new QueriesGenerated.RRC(i++)); rrcMethods.put("4622937352054437174", new QueriesGenerated.RRC(i++)); rrcMethods.put("3286885855910526128", new QueriesGenerated.RRC(i++)); rrcMethods.put("8659513752524822820", 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_4622937352053956208(ctx); case 1: return QueriesGenerated.baseMappingRule_Condition_4622937352054008304(ctx); case 2: return QueriesGenerated.baseMappingRule_Condition_4622937352054014465(ctx); case 3: return QueriesGenerated.baseMappingRule_Condition_4622937352054016214(ctx); case 4: return QueriesGenerated.baseMappingRule_Condition_4622937352053231172(ctx); case 5: return QueriesGenerated.baseMappingRule_Condition_4622937352053242887(ctx); case 6: return QueriesGenerated.baseMappingRule_Condition_4622937352053257021(ctx); case 7: return QueriesGenerated.baseMappingRule_Condition_4622937352053258795(ctx); case 8: return QueriesGenerated.baseMappingRule_Condition_4622937352053261836(ctx); case 9: return QueriesGenerated.baseMappingRule_Condition_4622937352053261857(ctx); case 10: return QueriesGenerated.baseMappingRule_Condition_4622937352053261878(ctx); case 11: return QueriesGenerated.baseMappingRule_Condition_4622937352053268616(ctx); case 12: return QueriesGenerated.baseMappingRule_Condition_4622937352054436955(ctx); case 13: return QueriesGenerated.baseMappingRule_Condition_4622937352054436974(ctx); case 14: return QueriesGenerated.baseMappingRule_Condition_4622937352054436993(ctx); case 15: return QueriesGenerated.baseMappingRule_Condition_4622937352054437012(ctx); case 16: return QueriesGenerated.baseMappingRule_Condition_4622937352054437041(ctx); case 17: return QueriesGenerated.baseMappingRule_Condition_4622937352054437062(ctx); case 18: return QueriesGenerated.baseMappingRule_Condition_4622937352054437083(ctx); case 19: return QueriesGenerated.baseMappingRule_Condition_4622937352054437104(ctx); case 20: return QueriesGenerated.baseMappingRule_Condition_4622937352054437125(ctx); case 21: return QueriesGenerated.baseMappingRule_Condition_4622937352054437146(ctx); case 22: return QueriesGenerated.baseMappingRule_Condition_4622937352054437167(ctx); case 23: return QueriesGenerated.baseMappingRule_Condition_4622937352054437186(ctx); case 24: return QueriesGenerated.baseMappingRule_Condition_3286885855910526132(ctx); case 25: return QueriesGenerated.baseMappingRule_Condition_8659513752524836708(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, MapConfigurationCondition> mccMethods = new HashMap<String, MapConfigurationCondition>(); { int i = 0; mccMethods.put("4622937352056028158", new QueriesGenerated.MCC(i++)); mccMethods.put("1829257266404527668", new QueriesGenerated.MCC(i++)); } @Override @NotNull public MapConfigurationCondition getMapConfigurationCondition(@NotNull QueryKey identity) { final String id = identity.getTemplateNode().getNodeId().toString(); if (!(mccMethods.containsKey(id))) { return super.getMapConfigurationCondition(identity); } return mccMethods.get(id); } private static class MCC implements MapConfigurationCondition { private final int methodKey; public MCC(int methodKey) { this.methodKey = methodKey; } @Override public boolean check(TemplateQueryContext ctx) throws GenerationFailureException { switch (methodKey) { case 0: return QueriesGenerated.mappingConfiguration_Condition_4622937352056028159(ctx); case 1: return QueriesGenerated.mappingConfiguration_Condition_1829257266404528854(ctx); default: throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for map configuration %s (key: #%d)", ctx.getTemplateReference(), methodKey)); } } } private final Map<String, SourceNodeQuery> snqMethods = new HashMap<String, SourceNodeQuery>(); { int i = 0; snqMethods.put("7166526225171473294", new QueriesGenerated.SNQ(i++)); snqMethods.put("2332657309401909877", new QueriesGenerated.SNQ(i++)); snqMethods.put("6550075386186283747", new QueriesGenerated.SNQ(i++)); snqMethods.put("4403308017443946770", new QueriesGenerated.SNQ(i++)); snqMethods.put("5111696079054638591", new QueriesGenerated.SNQ(i++)); snqMethods.put("1546095305979190366", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054745357", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054748441", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054748706", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054749052", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054749398", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054750129", new QueriesGenerated.SNQ(i++)); snqMethods.put("610507601221221903", new QueriesGenerated.SNQ(i++)); snqMethods.put("610507601221224018", new QueriesGenerated.SNQ(i++)); snqMethods.put("610507601221224622", new QueriesGenerated.SNQ(i++)); snqMethods.put("610507601221225442", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054755189", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054755718", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054756012", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054756370", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054756795", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054757108", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054757421", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352054757715", new QueriesGenerated.SNQ(i++)); snqMethods.put("5111696079055160180", new QueriesGenerated.SNQ(i++)); snqMethods.put("5111696079055165069", new QueriesGenerated.SNQ(i++)); snqMethods.put("1546095305979803184", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056528044", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056531913", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056532486", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056533045", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056533604", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056536963", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056534163", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056534726", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056535289", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056535852", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056536415", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056538112", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056538717", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056539322", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056539927", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056540532", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056541137", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352056541742", new QueriesGenerated.SNQ(i++)); snqMethods.put("8009469105144866708", new QueriesGenerated.SNQ(i++)); snqMethods.put("5111696079054651782", new QueriesGenerated.SNQ(i++)); snqMethods.put("4622937352055478675", new QueriesGenerated.SNQ(i++)); snqMethods.put("5111696079054992293", new QueriesGenerated.SNQ(i++)); snqMethods.put("5111696079054690026", new QueriesGenerated.SNQ(i++)); snqMethods.put("5111696079055222259", new QueriesGenerated.SNQ(i++)); snqMethods.put("5111696079055218366", new QueriesGenerated.SNQ(i++)); snqMethods.put("5111696079054692933", new QueriesGenerated.SNQ(i++)); snqMethods.put("5111696079055213250", new QueriesGenerated.SNQ(i++)); snqMethods.put("1546095305979485761", new QueriesGenerated.SNQ(i++)); snqMethods.put("3286885855910483636", new QueriesGenerated.SNQ(i++)); snqMethods.put("1829257266377441241", new QueriesGenerated.SNQ(i++)); snqMethods.put("8659513752524931867", 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_7166526225171473294(ctx); case 1: return QueriesGenerated.sourceNodeQuery_2332657309401909877(ctx); case 2: return QueriesGenerated.sourceNodeQuery_6550075386186283747(ctx); case 3: return QueriesGenerated.sourceNodeQuery_4403308017443946770(ctx); case 4: return QueriesGenerated.sourceNodeQuery_5111696079054638591(ctx); case 5: return QueriesGenerated.sourceNodeQuery_1546095305979190366(ctx); case 6: return QueriesGenerated.sourceNodeQuery_4622937352054745357(ctx); case 7: return QueriesGenerated.sourceNodeQuery_4622937352054748441(ctx); case 8: return QueriesGenerated.sourceNodeQuery_4622937352054748706(ctx); case 9: return QueriesGenerated.sourceNodeQuery_4622937352054749052(ctx); case 10: return QueriesGenerated.sourceNodeQuery_4622937352054749398(ctx); case 11: return QueriesGenerated.sourceNodeQuery_4622937352054750129(ctx); case 12: return QueriesGenerated.sourceNodeQuery_610507601221221903(ctx); case 13: return QueriesGenerated.sourceNodeQuery_610507601221224018(ctx); case 14: return QueriesGenerated.sourceNodeQuery_610507601221224622(ctx); case 15: return QueriesGenerated.sourceNodeQuery_610507601221225442(ctx); case 16: return QueriesGenerated.sourceNodeQuery_4622937352054755189(ctx); case 17: return QueriesGenerated.sourceNodeQuery_4622937352054755718(ctx); case 18: return QueriesGenerated.sourceNodeQuery_4622937352054756012(ctx); case 19: return QueriesGenerated.sourceNodeQuery_4622937352054756370(ctx); case 20: return QueriesGenerated.sourceNodeQuery_4622937352054756795(ctx); case 21: return QueriesGenerated.sourceNodeQuery_4622937352054757108(ctx); case 22: return QueriesGenerated.sourceNodeQuery_4622937352054757421(ctx); case 23: return QueriesGenerated.sourceNodeQuery_4622937352054757715(ctx); case 24: return QueriesGenerated.sourceNodeQuery_5111696079055160180(ctx); case 25: return QueriesGenerated.sourceNodeQuery_5111696079055165069(ctx); case 26: return QueriesGenerated.sourceNodeQuery_1546095305979803184(ctx); case 27: return QueriesGenerated.sourceNodeQuery_4622937352056528044(ctx); case 28: return QueriesGenerated.sourceNodeQuery_4622937352056531913(ctx); case 29: return QueriesGenerated.sourceNodeQuery_4622937352056532486(ctx); case 30: return QueriesGenerated.sourceNodeQuery_4622937352056533045(ctx); case 31: return QueriesGenerated.sourceNodeQuery_4622937352056533604(ctx); case 32: return QueriesGenerated.sourceNodeQuery_4622937352056536963(ctx); case 33: return QueriesGenerated.sourceNodeQuery_4622937352056534163(ctx); case 34: return QueriesGenerated.sourceNodeQuery_4622937352056534726(ctx); case 35: return QueriesGenerated.sourceNodeQuery_4622937352056535289(ctx); case 36: return QueriesGenerated.sourceNodeQuery_4622937352056535852(ctx); case 37: return QueriesGenerated.sourceNodeQuery_4622937352056536415(ctx); case 38: return QueriesGenerated.sourceNodeQuery_4622937352056538112(ctx); case 39: return QueriesGenerated.sourceNodeQuery_4622937352056538717(ctx); case 40: return QueriesGenerated.sourceNodeQuery_4622937352056539322(ctx); case 41: return QueriesGenerated.sourceNodeQuery_4622937352056539927(ctx); case 42: return QueriesGenerated.sourceNodeQuery_4622937352056540532(ctx); case 43: return QueriesGenerated.sourceNodeQuery_4622937352056541137(ctx); case 44: return QueriesGenerated.sourceNodeQuery_4622937352056541742(ctx); case 45: return QueriesGenerated.sourceNodeQuery_8009469105144866708(ctx); case 46: return QueriesGenerated.sourceNodeQuery_5111696079054651782(ctx); case 47: return QueriesGenerated.sourceNodeQuery_4622937352055478675(ctx); case 48: return QueriesGenerated.sourceNodeQuery_5111696079054992293(ctx); case 49: return QueriesGenerated.sourceNodeQuery_5111696079054690026(ctx); case 50: return QueriesGenerated.sourceNodeQuery_5111696079055222259(ctx); case 51: return QueriesGenerated.sourceNodeQuery_5111696079055218366(ctx); case 52: return QueriesGenerated.sourceNodeQuery_5111696079054692933(ctx); case 53: return QueriesGenerated.sourceNodeQuery_5111696079055213250(ctx); case 54: return QueriesGenerated.sourceNodeQuery_1546095305979485761(ctx); case 55: return QueriesGenerated.sourceNodeQuery_3286885855910483636(ctx); case 56: return QueriesGenerated.sourceNodeQuery_1829257266377441241(ctx); case 57: return QueriesGenerated.sourceNodeQuery_8659513752524931867(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("6040064942662561774", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("2332657309400883165", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("2332657309400728060", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("6004610301070392427", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("8564455257661591745", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("5111696079055160168", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("5111696079055165079", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("1546095305979803682", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("4622937352056075756", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("4622937352055440759", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("5111696079054987314", 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_6040064942662561774(ctx)); case 1: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2332657309400883165(ctx)); case 2: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2332657309400728060(ctx)); case 3: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6004610301070392427(ctx)); case 4: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_8564455257661591745(ctx)); case 5: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_5111696079055160168(ctx)); case 6: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_5111696079055165079(ctx)); case 7: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_1546095305979803682(ctx)); case 8: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_4622937352056075756(ctx)); case 9: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_4622937352055440759(ctx)); case 10: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_5111696079054987314(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("4207974313407676532", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), null)); pvqMethods.put("4207974313408000521", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x11157a3736dL, 0x11157a64c91L, "fqClassName"), "handler.name ")); pvqMethods.put("5465812603478881928", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "map_RequestHandler_extension")); pvqMethods.put("7166526225171473285", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "type")); pvqMethods.put("2332657309401958811", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "type")); pvqMethods.put("6550075386185836800", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "type")); pvqMethods.put("6550075386185867054", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "type")); pvqMethods.put("6040064942662606505", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), null)); pvqMethods.put("8564455257661563528", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "map_RequestHandler")); pvqMethods.put("2332657309400696583", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "value")); pvqMethods.put("4622937352054799555", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "_serialized")); pvqMethods.put("4403308017443232880", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "")); pvqMethods.put("4622937352053698051", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "map_ParameterConverter")); pvqMethods.put("4622937352055429558", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), null)); pvqMethods.put("4622937352056077046", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "")); pvqMethods.put("4622937352056223341", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "param")); pvqMethods.put("5111696079055218353", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x1115749abe3L, 0x1115767a8eeL, "fqClassName"), "converter.name")); pvqMethods.put("5111696079055182095", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x1115749abe3L, 0x1115767a8eeL, "fqClassName"), "converter.name")); pvqMethods.put("3286885855910478413", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x1115749abe3L, 0x1115767a8eeL, "fqClassName"), "converter.name")); pvqMethods.put("8009469105144847067", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), null)); } @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_4207974313407676535(ctx); case 1: return QueriesGenerated.propertyMacro_GetPropertyValue_4207974313408000522(ctx); case 2: return QueriesGenerated.propertyMacro_GetPropertyValue_5465812603478881929(ctx); case 3: return QueriesGenerated.propertyMacro_GetPropertyValue_7166526225171473286(ctx); case 4: return QueriesGenerated.propertyMacro_GetPropertyValue_2332657309401958814(ctx); case 5: return QueriesGenerated.propertyMacro_GetPropertyValue_6550075386185836801(ctx); case 6: return QueriesGenerated.propertyMacro_GetPropertyValue_6550075386185867055(ctx); case 7: return QueriesGenerated.propertyMacro_GetPropertyValue_6040064942662606506(ctx); case 8: return QueriesGenerated.propertyMacro_GetPropertyValue_8564455257661563529(ctx); case 9: return QueriesGenerated.propertyMacro_GetPropertyValue_2332657309400696584(ctx); case 10: return QueriesGenerated.propertyMacro_GetPropertyValue_4622937352054799556(ctx); case 11: return QueriesGenerated.propertyMacro_GetPropertyValue_4403308017443232883(ctx); case 12: return QueriesGenerated.propertyMacro_GetPropertyValue_4622937352053698054(ctx); case 13: return QueriesGenerated.propertyMacro_GetPropertyValue_4622937352055429559(ctx); case 14: return QueriesGenerated.propertyMacro_GetPropertyValue_4622937352056077047(ctx); case 15: return QueriesGenerated.propertyMacro_GetPropertyValue_4622937352056223344(ctx); case 16: return QueriesGenerated.propertyMacro_GetPropertyValue_5111696079055218354(ctx); case 17: return QueriesGenerated.propertyMacro_GetPropertyValue_5111696079055182096(ctx); case 18: return QueriesGenerated.propertyMacro_GetPropertyValue_3286885855910478414(ctx); case 19: return QueriesGenerated.propertyMacro_GetPropertyValue_8009469105144847068(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, IfMacroCondition> imcMethods = new HashMap<String, IfMacroCondition>(); { int i = 0; imcMethods.put("1546095305979194294", new QueriesGenerated.IfMC(i++)); imcMethods.put("1546095305979810535", new QueriesGenerated.IfMC(i++)); imcMethods.put("1546095305979349200", new QueriesGenerated.IfMC(i++)); } @NotNull @Override public IfMacroCondition getIfMacroCondition(@NotNull QueryKey identity) { final String id = identity.getTemplateNode().getNodeId().toString(); if (!(imcMethods.containsKey(id))) { return super.getIfMacroCondition(identity); } return imcMethods.get(id); } private static class IfMC implements IfMacroCondition { private final int methodKey; public IfMC(int methodKey) { this.methodKey = methodKey; } @Override public boolean check(@NotNull IfMacroContext ctx) throws GenerationFailureException { switch (methodKey) { case 0: return QueriesGenerated.ifMacro_Condition_1546095305979194296(ctx); case 1: return QueriesGenerated.ifMacro_Condition_1546095305979810537(ctx); case 2: return QueriesGenerated.ifMacro_Condition_1546095305979349202(ctx); default: throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for if macro %s (key: #%d)", ctx.getTemplateReference(), methodKey)); } } } private final Map<String, InlineSwitchCaseCondition> isccMethods = new HashMap<String, InlineSwitchCaseCondition>(); { int i = 0; isccMethods.put("7166526225171406483", new QueriesGenerated.ISCC(i++)); isccMethods.put("7166526225171447414", new QueriesGenerated.ISCC(i++)); isccMethods.put("6550075386185843068", new QueriesGenerated.ISCC(i++)); } @NotNull @Override public InlineSwitchCaseCondition getInlineSwitchCaseCondition(@NotNull QueryKey identity) { final String id = identity.getTemplateNode().getNodeId().toString(); if (!(isccMethods.containsKey(id))) { return super.getInlineSwitchCaseCondition(identity); } return isccMethods.get(id); } private static class ISCC implements InlineSwitchCaseCondition { private final int methodKey; public ISCC(int methodKey) { this.methodKey = methodKey; } @Override public boolean check(@NotNull InlineSwitchCaseContext ctx) throws GenerationFailureException { switch (methodKey) { case 0: return QueriesGenerated.baseMappingRule_Condition_7166526225171406484(ctx); case 1: return QueriesGenerated.baseMappingRule_Condition_7166526225171447415(ctx); case 2: return QueriesGenerated.baseMappingRule_Condition_6550075386185843069(ctx); default: throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for inline switch's case %s (key: #%d)", ctx.getTemplateReference(), methodKey)); } } } private final Map<String, ReferenceTargetQuery> rtqMethods = new HashMap<String, ReferenceTargetQuery>(); { rtqMethods.put("2332657309401653524", new QueriesGenerated.RTQ(0, "y")); rtqMethods.put("4622937352053315501", new QueriesGenerated.RTQ(1, "value")); rtqMethods.put("1546095305979190347", new QueriesGenerated.RTQ(2, "value")); } @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_2332657309401653525(ctx); case 1: return QueriesGenerated.referenceMacro_GetReferent_4622937352053315502(ctx); case 2: return QueriesGenerated.referenceMacro_GetReferent_1546095305979190348(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, CallArgumentQuery> caqMethods = new HashMap<String, CallArgumentQuery>(); { caqMethods.put("5111696079054902365", new QueriesGenerated.CAQ(0)); caqMethods.put("5111696079054098866", new QueriesGenerated.CAQ(1)); } @NotNull @Override public CallArgumentQuery getTemplateCallArgumentQuery(@NotNull QueryKey queryKey) { final String id = queryKey.getTemplateNode().getNodeId().toString(); if (!(caqMethods.containsKey(id))) { return super.getTemplateCallArgumentQuery(queryKey); } return caqMethods.get(id); } private static class CAQ implements CallArgumentQuery { private final int methodKey; /*package*/ CAQ(int methodKey) { this.methodKey = methodKey; } @Nullable public Object evaluate(@NotNull TemplateArgumentContext ctx) throws GenerationFailureException { switch (methodKey) { case 0: return QueriesGenerated.templateArgumentQuery_5111696079054902367(ctx); case 1: return QueriesGenerated.templateArgumentQuery_5111696079054098866(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_b0a0a1() { 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("~String"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a2() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; SNode quotedNode_2 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf940d819f7L, "ArrayType"), null, null, false); quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf940d5b617L, "ByteType"), null, null, false); quotedNode_1.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf940d819f7L, 0xf940d819f8L, "componentType"), quotedNode_2); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a3() { 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("498d89d2-c2e9-11e2-ad49-6cf049e62fe5/java:io.netty.buffer(MPS.IDEA/)"), facade.createNodeId("~ByteBuf"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a4() { 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("~Integer"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a5() { 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("~Float"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a6() { 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("~Double"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a7() { 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("~Long"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a8() { 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("~String"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a9() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.model(MPS.OpenAPI/)"), facade.createNodeId("~SNodeReference"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a01() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.model(MPS.OpenAPI/)"), facade.createNodeId("~SModelReference"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a11() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.module(MPS.OpenAPI/)"), facade.createNodeId("~SModuleReference"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a21() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.model(MPS.OpenAPI/)"), facade.createNodeId("~SNodeId"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a31() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.model(MPS.OpenAPI/)"), facade.createNodeId("~SModelId"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a41() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.module(MPS.OpenAPI/)"), facade.createNodeId("~SModuleId"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a51() { 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("6ed54515-acc8-4d1e-a16c-9fd6cfe951ea/java:jetbrains.mps.project(MPS.Core/)"), facade.createNodeId("~Project"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a61() { 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("~Integer"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a71() { 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("~Float"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a81() { 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("~Double"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a91() { 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("~Long"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a02() { 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("~String"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a12() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.model(MPS.OpenAPI/)"), facade.createNodeId("~SNodeReference"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a22() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.model(MPS.OpenAPI/)"), facade.createNodeId("~SModelReference"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a32() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.module(MPS.OpenAPI/)"), facade.createNodeId("~SModuleReference"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a42() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.model(MPS.OpenAPI/)"), facade.createNodeId("~SNodeId"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a52() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.model(MPS.OpenAPI/)"), facade.createNodeId("~SModelId"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a62() { 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("8865b7a8-5271-43d3-884c-6fd1d9cfdd34/java:org.jetbrains.mps.openapi.module(MPS.OpenAPI/)"), facade.createNodeId("~SModuleId"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a72() { 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("6ed54515-acc8-4d1e-a16c-9fd6cfe951ea/java:jetbrains.mps.project(MPS.Core/)"), facade.createNodeId("~Project"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_b0a0a82() { 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("6ed54515-acc8-4d1e-a16c-9fd6cfe951ea/java:jetbrains.mps.project(MPS.Core/)"), facade.createNodeId("~Project"))); return quotedNode_1; } private static SNode _quotation_createNode_x583g4_a0a411(Object parameter_1, Object parameter_2) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_3 = null; SNode quotedNode_4 = null; quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, "jetbrains.mps.baseLanguageInternal"), 0x111fb5bb1f2L, "InternalVariableReference"), null, null, false); SNodeAccessUtil.setProperty(quotedNode_3, MetaAdapterFactory.getProperty(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x111fb5bb1f2L, 0x111fb5dbc49L, "name"), (String) parameter_2); quotedNode_4 = (SNode) parameter_1; if (quotedNode_4 != null) { quotedNode_3.addChild(MetaAdapterFactory.getContainmentLink(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x111fb5bb1f2L, 0x111fb5c4f4cL, "type"), HUtil.copyIfNecessary(quotedNode_4)); } return quotedNode_3; } private static SNode _quotation_createNode_x583g4_a0a511(Object parameter_1) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_2 = null; SNode quotedNode_3 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, "jetbrains.mps.baseLanguageInternal"), 0x111fb5bb1f2L, "InternalVariableReference"), null, null, false); SNodeAccessUtil.setProperty(quotedNode_2, MetaAdapterFactory.getProperty(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x111fb5bb1f2L, 0x111fb5dbc49L, "name"), (String) parameter_1); quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0x101de48bf9eL, "ClassifierType"), null, null, false); quotedNode_3.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"), quotedNode_3, facade.createModelReference("6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)"), facade.createNodeId("~String"))); quotedNode_2.addChild(MetaAdapterFactory.getContainmentLink(0xdf345b11b8c74213L, 0xac6648d2a9b75d88L, 0x111fb5bb1f2L, 0x111fb5c4f4cL, "type"), quotedNode_3); return quotedNode_2; } private static SNode _quotation_createNode_x583g4_a0a0a0a911() { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_1 = null; SNode quotedNode_2 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf8cc67c7feL, "ReturnStatement"), null, null, false); quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf8cc56b201L, "BooleanConstant"), null, null, false); SNodeAccessUtil.setProperty(quotedNode_2, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"), "true"); quotedNode_1.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc67c7feL, 0xf8cc6bf96cL, "expression"), quotedNode_2); return quotedNode_1; } }