package jetbrains.mps.build.mps.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.internal.collections.runtime.ListSequence; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations; import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory; import org.jetbrains.mps.openapi.language.SAbstractConcept; import jetbrains.mps.build.mps.behavior.BuildMps_Module__BehaviorDescriptor; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SLinkOperations; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SPropertyOperations; import jetbrains.mps.internal.collections.runtime.IWhereFilter; import org.jetbrains.mps.openapi.model.SNode; import jetbrains.mps.generator.template.PropertyMacroContext; import jetbrains.mps.build.mps.behavior.BuildMps_AbstractModule__BehaviorDescriptor; import jetbrains.mps.baseLanguage.tuples.runtime.Tuples; import jetbrains.mps.build.util.VisibleArtifacts; import jetbrains.mps.build.behavior.BuildSourcePath__BehaviorDescriptor; import jetbrains.mps.internal.collections.runtime.ISelector; import jetbrains.mps.build.mps.util.ArtifactsRelativePathHelper; import jetbrains.mps.build.util.Context; import jetbrains.mps.build.util.RelativePathHelper; import jetbrains.mps.build.mps.behavior.BuildMpsLayout_ModuleJars__BehaviorDescriptor; import jetbrains.mps.build.util.DependenciesHelper; import jetbrains.mps.build.behavior.BuildLayout_PathElement__BehaviorDescriptor; import jetbrains.mps.build.behavior.BuildString__BehaviorDescriptor; import jetbrains.mps.internal.collections.runtime.Sequence; import jetbrains.mps.generator.template.ReferenceMacroContext; import jetbrains.mps.generator.TransientModelsModule; import jetbrains.mps.generator.template.IfMacroContext; import jetbrains.mps.build.mps.util.MPSModulesPartitioner; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SModelOperations; import jetbrains.mps.build.behavior.BuildPlugin__BehaviorDescriptor; import jetbrains.mps.build.mps.behavior.BuildMPSPlugin__BehaviorDescriptor; import java.util.List; import jetbrains.mps.generator.template.SourceSubstituteMacroNodeContext; import jetbrains.mps.build.mps.util.MPSModulesClosure; import jetbrains.mps.generator.template.TemplateArgumentContext; import jetbrains.mps.generator.template.SourceSubstituteMacroNodesContext; import java.util.ArrayList; import java.util.Set; import jetbrains.mps.internal.collections.runtime.SetSequence; import java.util.HashSet; import jetbrains.mps.build.mps.util.ModuleFinder; import jetbrains.mps.internal.collections.runtime.ITranslator2; import jetbrains.mps.generator.template.MapSrcMacroPostProcContext; import jetbrains.mps.generator.template.WeavingMappingRuleContext; import jetbrains.mps.generator.template.MappingScriptContext; import jetbrains.mps.build.mps.util.PathConverter; import jetbrains.mps.build.mps.util.VisibleModules; import jetbrains.mps.build.mps.util.ModuleLoader; import jetbrains.mps.build.mps.util.ModuleChecker; import jetbrains.mps.generator.template.TemplateVarContext; import jetbrains.mps.baseLanguage.tuples.runtime.MultiTuple; import jetbrains.mps.build.util.LocalSourcePathArtifact; import jetbrains.mps.lang.smodel.generator.smodelAdapter.SConceptOperations; import jetbrains.mps.build.mps.util.RequiredPlugins; import jetbrains.mps.build.util.ProjectDependency; 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.WeaveRuleCondition; import jetbrains.mps.generator.impl.query.WeaveRuleQuery; import jetbrains.mps.generator.impl.query.WeaveAnchorQuery; import org.jetbrains.annotations.Nullable; import jetbrains.mps.generator.template.WeavingAnchorContext; import jetbrains.mps.generator.impl.query.ScriptCodeBlock; import jetbrains.mps.generator.impl.query.SourceNodeQuery; import jetbrains.mps.generator.impl.query.QueryKeyImpl; 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.VariableValueQuery; import jetbrains.mps.generator.impl.query.CallArgumentQuery; import jetbrains.mps.generator.impl.query.MapPostProcessor; import org.jetbrains.mps.openapi.persistence.PersistenceFacade; import jetbrains.mps.smodel.SModelUtil_new; @Generated public class QueriesGenerated extends QueryProviderBase { public QueriesGenerated() { super(1); } public static boolean baseMappingRule_Condition_2413798559262850299(final BaseMappingRuleContext _context) { return ListSequence.fromList(SNodeOperations.getNodeDescendants(_context.getNode(), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, "jetbrains.mps.build.mps.structure.BuildMps_Module"), false, new SAbstractConcept[]{})).isNotEmpty(); } public static boolean baseMappingRule_Condition_1500819558096430320(final BaseMappingRuleContext _context) { return (boolean) BuildMps_Module__BehaviorDescriptor.isCompilable_id6tOCIA6_7jg.invoke(_context.getNode()); } public static boolean baseMappingRule_Condition_2591537044436204156(final BaseMappingRuleContext _context) { return SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x23f6fd361bdcfd24L, 0x23f6fd361bdcfd26L, "module")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, "jetbrains.mps.build.mps.structure.BuildMps_Module")); } public static boolean baseMappingRule_Condition_1238980147630114160(final BaseMappingRuleContext _context) { // FIXME template for this case was copied from reduce_BuildMpsLayout_ModuleJars, shall refactor to avoid duplication return SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f7L, "jetbrains.mps.build.mps.structure.BuildMps_Solution")) && SPropertyOperations.getBoolean(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x14d3fb6fb84ac614L, "doNotCompile")) && ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341cb8L, "dependencies"))).all(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return !(SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, "jetbrains.mps.build.mps.structure.BuildMps_ModuleDependencyJar"))); } }); } public static boolean baseMappingRule_Condition_7753544965996882285(final BaseMappingRuleContext _context) { return SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x6b9a2011083f9404L, 0x6b9a2011083f9406L, "element")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, "jetbrains.mps.build.mps.structure.BuildMps_Branding")); } public static boolean baseMappingRule_Condition_3389822811994148468(final BaseMappingRuleContext _context) { return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bbdcL, 0x37fdb3de482cf2dfL, "customPackaging")); } public static boolean baseMappingRule_Condition_4912951749633403034(final BaseMappingRuleContext _context) { // FIXME the only reason I check for same project, not same model here // is that to introduce least possible change now. Once I've got this functional, // shall get back and refactor this condition, as well as inspiring match in reduceMPSModule. // Check comment in the IF macro there for extra insight. // // For the time being, for any layout node not from the same project (even from the same model, // i.e. being transformed simultaneously), take jar classpath element directly (like reduceMPSModule // does for dependencies between MpsModules). The problem with external jar is that BuildLayout_Node // comes from a different transformation step (now we collect them in a pre-processing script in a distinct // step (e.g @2_0), hence reference macro (@4_1->@5_0) yields a stale target) and generation fails unless // transient models are turned on. // // In fact, this condition would never be true, provided BL_File comes from DependenciesHelper artifacts // that are collected at distinct step, however, I'd like to keep both alternatives for completeness. return SNodeOperations.getContainingRoot(((SNode) _context.getVariable("currentModule"))) != SNodeOperations.getContainingRoot(_context.getNode()); } public static boolean baseMappingRule_Condition_4912951749633403527(final BaseMappingRuleContext _context) { // see above for the explanation return SNodeOperations.getContainingRoot(((SNode) _context.getVariable("currentModule"))) != SNodeOperations.getContainingRoot(_context.getNode()); } public static Object propertyMacro_GetPropertyValue_2389279258789759930(final PropertyMacroContext _context) { return ""; } public static Object propertyMacro_GetPropertyValue_1500819558096225938(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } public static Object propertyMacro_GetPropertyValue_7259033139236585058(final PropertyMacroContext _context) { return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x44e5dd192e7c0c18L, 0x44e5dd192e7c0c1aL, "targetReexport")); } public static Object propertyMacro_GetPropertyValue_2105528055260559335(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x177c2feaf3463711L, "module")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } public static Object propertyMacro_GetPropertyValue_4643216374596368557(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x6a3e160a3efe6275L, "module")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } public static Object propertyMacro_GetPropertyValue_4643216374596368425(final PropertyMacroContext _context) { // constants from DeploymentDescriptor.TYPE_* if (SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x6a3e160a3efe6275L, "module")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f7L, "jetbrains.mps.build.mps.structure.BuildMps_Solution"))) { return "solution"; } if (SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x6a3e160a3efe6275L, "module")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, "jetbrains.mps.build.mps.structure.BuildMps_Language"))) { return "language"; } if (SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x6a3e160a3efe6275L, "module")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4c6db07d2e56a8b4L, "jetbrains.mps.build.mps.structure.BuildMps_Generator"))) { return "generator"; } return "undefined"; } public static Object propertyMacro_GetPropertyValue_4643216374596368503(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x6a3e160a3efe6275L, "module")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d3868bL, "uuid")); } public static Object propertyMacro_GetPropertyValue_4643216374596368657(final PropertyMacroContext _context) { return (String) BuildMps_AbstractModule__BehaviorDescriptor.getModuleReference_id41K1b4v5ZCB.invoke(_context.getNode()); } public static Object propertyMacro_GetPropertyValue_4743026300739052426(final PropertyMacroContext _context) { if (((Tuples._3<VisibleArtifacts, SNode, SNode>) _context.getVariable("var:files")) == null) { return "???"; } final String pathText = BuildSourcePath__BehaviorDescriptor.getRelativePath_id4Kip2_918YF.invoke(_context.getNode()); // first, check if there's overriden location for the path String result = ListSequence.fromList(SLinkOperations.getChildren(((Tuples._3<VisibleArtifacts, SNode, SNode>) _context.getVariable("var:files"))._2(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x3c765492deb1ce79L, "jarLocations"))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return eq_x583g4_a0a0a0a0a0a0a3a71(BuildSourcePath__BehaviorDescriptor.getRelativePath_id4Kip2_918YF.invoke(SLinkOperations.getTarget(it, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3c765492deb1a384L, 0x3c765492deb1a385L, "path"))), pathText); } }).select(new ISelector<SNode, String>() { public String select(SNode it) { return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3c765492deb1a384L, 0x3c765492deb1a386L, "packagedLocation")); } }).first(); if (result != null) { return result; } // if not, try to find matching path in the project's layout VisibleArtifacts outputFiles = ((Tuples._3<VisibleArtifacts, SNode, SNode>) _context.getVariable("var:files"))._0(); SNode container = ((Tuples._3<VisibleArtifacts, SNode, SNode>) _context.getVariable("var:files"))._1(); try { return new ArtifactsRelativePathHelper(outputFiles, container).getRelativePath(_context.getNode()); } catch (ArtifactsRelativePathHelper.RelativePathException ex) { String jarName = BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(_context.getNode(), Context.defaultContext(_context).getMacros(_context.getNode())); _context.showErrorMessage(_context.getNode(), "cannot build relative path to `" + jarName + "': " + ex.getMessage()); return ""; } } public static Object propertyMacro_GetPropertyValue_8488591998065733683(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path")); } public static Object propertyMacro_GetPropertyValue_4743026300739110532(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x707952bffb692f6L, "sourcesJarLocation")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path")); } public static Object propertyMacro_GetPropertyValue_4743026300739110547(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x67c5a3b7c82af3d6L, "sourceDescriptorFile")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path")); } public static Object propertyMacro_GetPropertyValue_7918752904809327284(final PropertyMacroContext _context) { return SPropertyOperations.getBoolean(((SNode) _context.getVariable("var:modSources")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x6de50fcfc334192fL, "stripImplementation")); } public static Object propertyMacro_GetPropertyValue_8654221991637263445(final PropertyMacroContext _context) { try { String relative = ((RelativePathHelper) _context.getVariable("var:modulePath")).makeRelative(BuildSourcePath__BehaviorDescriptor.getLocalPath_id4Kip2_918Y$.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c195c50L, 0x3b60c4a45c195c52L, "folder")), Context.defaultContext(_context))); if (relative == null) { _context.showErrorMessage(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c195c50L, 0x3b60c4a45c195c52L, "folder")), "model root folder should be placed under module: " + BuildSourcePath__BehaviorDescriptor.getRelativePath_id4Kip2_918YF.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c195c50L, 0x3b60c4a45c195c52L, "folder")))); } return relative; } catch (RelativePathHelper.PathException ex) { _context.showErrorMessage(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c195c50L, 0x3b60c4a45c195c52L, "folder")), "cannot build relative path: " + ex.getMessage()); return "???"; } } public static Object propertyMacro_GetPropertyValue_7477562766051464980(final PropertyMacroContext _context) { if ((SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) == null)) { // condition is the one from IF that generates source module, below return null; } return (String) BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")), Context.defaultContext(_context).getMacros(_context.getNode())); } public static Object propertyMacro_GetPropertyValue_7477562766051598607(final PropertyMacroContext _context) { if ((SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) == null)) { // condition is the one from IF that generates source module, below return null; } return (String) BuildMpsLayout_ModuleJars__BehaviorDescriptor.getSourceModuleJarName_id6v5CVv8csP9.invoke(_context.getNode()); } public static Object propertyMacro_GetPropertyValue_2540145662854694140(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + ".jar"; } public static Object propertyMacro_GetPropertyValue_7477562766051677944(final PropertyMacroContext _context) { if ((SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4c6db07d2e56a8b4L, 0xc0f2d501dbb734cL, "sourceLanguage")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) == null)) { // condition is the one from IF that generates source module, below return null; } return BuildMpsLayout_ModuleJars__BehaviorDescriptor.getSourceModuleJarName_id6v5CVv8csP9.invoke(((SNode) _context.getVariable("var:moduleJarsNode"))); } public static Object propertyMacro_GetPropertyValue_7477562766051765207(final PropertyMacroContext _context) { if ((SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4c6db07d2e56a8b4L, 0xc0f2d501dbb734cL, "sourceLanguage")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) == null)) { // condition is the one from IF that generates source module, below return null; } return (String) BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4c6db07d2e56a8b4L, 0xc0f2d501dbb734cL, "sourceLanguage")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")), Context.defaultContext(_context).getMacros(_context.getNode())); } public static Object propertyMacro_GetPropertyValue_9200313594511245388(final PropertyMacroContext _context) { StringBuilder sb = new StringBuilder(); sb.append(SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4c6db07d2e56a8b4L, 0xc0f2d501dbb734cL, "sourceLanguage")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))); if (((Integer) _context.getVariable("cv:c")) > 0) { // for compatibility with legacy code, do not use index for the first generator. // as there is at most 1 generator per language now, this code is effectively dead. // When we move towards multiple generators, we need to change BuildMpsLayout_Plugin behavior (unpack and location), // as well as BuildMpsLayout_ModuleJars.location (and, perhaps, other locations that assume lagnuage.name-generator.jar pattern). sb.append('-'); sb.append(Integer.toString(((Integer) _context.getVariable("cv:c")))); } return sb.append("-generator.jar").toString(); } public static Object propertyMacro_GetPropertyValue_7918752904810572710(final PropertyMacroContext _context) { return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x6de50fcfc3523742L, "stripImplementation")); } public static Object propertyMacro_GetPropertyValue_2540145662854694191(final PropertyMacroContext _context) { return (String) BuildMpsLayout_ModuleJars__BehaviorDescriptor.getSourceModuleJarName_id6v5CVv8csP9.invoke(_context.getNode()); } public static Object propertyMacro_GetPropertyValue_4821808014881207505(final PropertyMacroContext _context) { SNode project = SNodeOperations.getNodeAncestor(_context.getNode(), MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, "jetbrains.mps.build.structure.BuildProject"), false, false); if (project == null) { _context.showErrorMessage(_context.getNode(), "no context project defined"); return "???"; } DependenciesHelper helper = new DependenciesHelper(_context, project); SNode layoutNode = helper.getArtifact(((SNode) _context.getVariable("dependency"))); if (layoutNode == null) { _context.showErrorMessage(_context.getNode(), "mps module " + SPropertyOperations.getString(((SNode) _context.getVariable("dependency")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + " was not found in the layout"); return "???"; } String val = BuildLayout_PathElement__BehaviorDescriptor.location_id6b4RkXS8sT2.invoke(layoutNode, helper, ((SNode) _context.getVariable("dependency"))); if (val == null) { _context.showErrorMessage(_context.getNode(), "no location for the mps module " + SPropertyOperations.getString(((SNode) _context.getVariable("dependency")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))); return "???"; } return val; } public static Object propertyMacro_GetPropertyValue_7477562766051792015(final PropertyMacroContext _context) { // FIXME no reason for MM to assume DD.descriptorFile always goes under module, we shall keep this knowledge here // right now it's MM that prepends "module/" to the path we construct here, although it's this code that actually knowsn // about module/ folder in the jar return (String) BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")), Context.defaultContext(_context).getMacros(_context.getNode())); } public static Object propertyMacro_GetPropertyValue_7753763219109706789(final PropertyMacroContext _context) { return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x6de50fcfc3523742L, "stripImplementation")); } public static Object propertyMacro_GetPropertyValue_1238980147630114297(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + ".jar"; } public static Object propertyMacro_GetPropertyValue_7753544965996882380(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x308857b584c76f03L, "codename")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_7753544965996883334(final PropertyMacroContext _context) { return Integer.toString(SPropertyOperations.getInteger(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x308857b584c74e44L, "major"))); } public static Object propertyMacro_GetPropertyValue_7753544965996885263(final PropertyMacroContext _context) { return Integer.toString(SPropertyOperations.getInteger(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x308857b584c74e45L, "minor"))); } public static Object propertyMacro_GetPropertyValue_8214652431340021967(final PropertyMacroContext _context) { return SPropertyOperations.getString(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x3acf8ab06f017071L, "bugfixNr")); } public static Object propertyMacro_GetPropertyValue_7753544965996885279(final PropertyMacroContext _context) { return (SPropertyOperations.getBoolean(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x308857b584c74e46L, "eap")) ? "true" : "false"); } public static Object propertyMacro_GetPropertyValue_7753544965996885369(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb19dcdL, "updateWebsite")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083d2d07L, 0x7a0ffb6a57a037f3L, "updateChannel")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_781140262678093902(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24ac230dL, "company")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xad72aee24ac03d8L, 0xad72aee24ac03e1L, "name")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_781140262678105144(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24ac230dL, "company")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xad72aee24ac03d8L, 0xad72aee24ac03e2L, "url")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_7753544965996885636(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb00019L, "buildNumber")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084473470(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x144b26ad23d8bd88L, "buildDate")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084462106(final PropertyMacroContext _context) { return "/" + BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feaf4b14L, "splashScreen")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084462141(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x7a0ffb6a57a27969L, "textColor")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_6845119683729383511(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9b80624L, "progressColor")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_7962467864632500981(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x6e805e55fee09551L, "progressX")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_6845119683729386512(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9b8abc5L, "progressY")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_7962467864633127657(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x6e805e55feeab57eL, "progressHeight")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084462063(final PropertyMacroContext _context) { return "/" + BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feaf4b15L, "aboutScreen")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084462314(final PropertyMacroContext _context) { return "/" + BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb0001aL, "icon32")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084462338(final PropertyMacroContext _context) { return "/" + BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb0001bL, "icon16")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084462361(final PropertyMacroContext _context) { return "/" + BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb0001cL, "icon32opaque")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_6845119683730306982(final PropertyMacroContext _context) { return "/" + BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9c0dee8L, "iconToolWindow")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_781140262677966726(final PropertyMacroContext _context) { return "/" + BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24a9cbfeL, "icon128")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_6845119683729395353(final PropertyMacroContext _context) { return "/" + BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9b7cdc4L, "icon")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084462431(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb230afL, "shortName")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084462453(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb230b0L, "fullName")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_772379520212879621(final PropertyMacroContext _context) { return "/" + BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xab80b14d5f245eeL, "welcomeLogo")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_6099622527106030561(final PropertyMacroContext _context) { return "/" + BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54a6365f080e9d69L, "editorBGUrl")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_781140262678149978(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24a9cf29L, "plugins")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084461924(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb19dcdL, "updateWebsite")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083d2d07L, 0x54c4eb89feb19db8L, "checkUrl")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084461949(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb19dcdL, "updateWebsite")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083d2d07L, 0x54c4eb89feb19db9L, "updateUrl")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084452900(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x611c17467fa8199L, "help")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083d2d08L, 0x611c17467fa8198L, "file")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084452878(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x611c17467fa8199L, "help")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083d2d08L, 0x611c17467fa8197L, "root")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_1462305029084421197(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x611c17467fa8199L, "help")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083d2d08L, 0x611c17467fa8196L, "url")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_5894421362117319930(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x51cd30ffb57480b2L, "documentation")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_5894421362117650629(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x51cd30ffb57a2995L, "support")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_8877724874822463401(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x7b3403bcc96cf3b6L, "feedbackUrl")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_8877724874822463478(final PropertyMacroContext _context) { return (SPropertyOperations.getBoolean(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x308857b584c74e46L, "eap")) ? "eap-url" : "release-url"); } public static Object propertyMacro_GetPropertyValue_781140262678199735(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24ac04a2L, "whatsnew")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_5894421362118006948(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x51cd30ffb57f92b9L, "keymap")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x51cd30ffb57f91cfL, 0x51cd30ffb57f91d3L, "win")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_5894421362118007026(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x51cd30ffb57f92b9L, "keymap")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x51cd30ffb57f91cfL, 0x51cd30ffb57f91d8L, "mac")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_5894421362118348067(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x51cd30ffb584b4d4L, "thirdparty")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_781140262678258088(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24acb24dL, "stats")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xad72aee24a9d06fL, 0xad72aee24aa1297L, "settings")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_781140262678263356(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24acb24dL, "stats")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xad72aee24a9d06fL, 0xad72aee24aa1298L, "service")), Context.defaultContext(_context).getMacros(((SNode) _context.getVariable("branding")))); } public static Object propertyMacro_GetPropertyValue_6592112598314984957(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x5b7be37b4de9bb6fL, "id")); } public static Object propertyMacro_GetPropertyValue_6592112598314985023(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x5b7be37b4de9bbcdL, "name")), Context.defaultContext(_context).getMacros(_context.getNode())); } public static Object propertyMacro_GetPropertyValue_2172791612911012486(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x1e274e75c23f88b2L, "description")), Context.defaultContext(_context).getMacros(_context.getNode())); } public static Object propertyMacro_GetPropertyValue_6592112598314985144(final PropertyMacroContext _context) { return (String) BuildString__BehaviorDescriptor.getText_id3NagsOfTioI.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x5b7be37b4de9bb73L, "version")), Context.defaultContext(_context).getMacros(_context.getNode())); } public static Object propertyMacro_GetPropertyValue_7832771629085133941(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x6cb3984bfe5d2b86L, "vendor")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6cb3984bfe5b72d3L, 0x6cb3984bfe5b72d5L, "url")); } public static Object propertyMacro_GetPropertyValue_7832771629085134957(final PropertyMacroContext _context) { SNode icon16 = SLinkOperations.getTarget(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x6cb3984bfe5d2b86L, "vendor")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6cb3984bfe5b72d3L, 0x6cb3984bfe5b72d4L, "icon16")); return "/" + BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(icon16, Context.defaultContext(_context).getMacros(_context.getNode())); } public static Object propertyMacro_GetPropertyValue_7832771629085133854(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x6cb3984bfe5d2b86L, "vendor")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6cb3984bfe5b72d3L, 0x6cb3984bfe5b72d6L, "name")); } public static Object propertyMacro_GetPropertyValue_6592112598314985447(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bbd3L, 0x5b7be37b4de9bbfaL, "target")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x5b7be37b4de9bb6fL, "id")); } public static Object propertyMacro_GetPropertyValue_2436117033632111130(final PropertyMacroContext _context) { if (isNotEmptyString(((String) _context.getVariable("var:mpsBackend")))) { return ((String) _context.getVariable("var:mpsBackend")); } return _context.getTemplateValue(); } public static Object propertyMacro_GetPropertyValue_2436117033632111187(final PropertyMacroContext _context) { if (isNotEmptyString(((String) _context.getVariable("var:jdom")))) { return ((String) _context.getVariable("var:jdom")); } return _context.getTemplateValue(); } public static Object propertyMacro_GetPropertyValue_2436117033632111196(final PropertyMacroContext _context) { if (isNotEmptyString(((String) _context.getVariable("var:log4j")))) { return ((String) _context.getVariable("var:log4j")); } return _context.getTemplateValue(); } public static Object propertyMacro_GetPropertyValue_4297162197629738843(final PropertyMacroContext _context) { return Boolean.toString(SPropertyOperations.getBoolean(((SNode) _context.getVariable("var:genOptions")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x3ba296405b6f720cL, "strict"))); } public static Object propertyMacro_GetPropertyValue_978600701690073083(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path")); } public static Object propertyMacro_GetPropertyValue_5970181360960745173(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path")); } public static Object propertyMacro_GetPropertyValue_4297162197629596072(final PropertyMacroContext _context) { return Boolean.toString(SPropertyOperations.getBoolean(((SNode) _context.getVariable("var:genOptions")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x3ba296405b6f720eL, "parallel"))); } public static Object propertyMacro_GetPropertyValue_4297162197630908240(final PropertyMacroContext _context) { int thc = SPropertyOperations.getInteger(((SNode) _context.getVariable("var:genOptions")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x3ba296405b6f7211L, "parallelThreads")); if (thc == 0) { thc = 1; } return Integer.toString(thc); } public static Object propertyMacro_GetPropertyValue_4297162197629869374(final PropertyMacroContext _context) { return Boolean.toString(SPropertyOperations.getBoolean(((SNode) _context.getVariable("var:genOptions")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x3ba296405b7040e4L, "inplace"))); } public static Object propertyMacro_GetPropertyValue_3938719774425518972(final PropertyMacroContext _context) { return Boolean.toString(SPropertyOperations.getBoolean(((SNode) _context.getVariable("var:genOptions")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x36a924c4406d57f3L, "hideWarnings"))); } public static Object propertyMacro_GetPropertyValue_6535001758417114442(final PropertyMacroContext _context) { return Boolean.toString(SPropertyOperations.getBoolean(((SNode) _context.getVariable("var:genOptions")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x5ab0fd79b0feb375L, "createStaticRefs"))); } public static Object propertyMacro_GetPropertyValue_3733986151372087666(final PropertyMacroContext _context) { return SPropertyOperations.getString(((SNode) _context.getVariable("var:compilerOptions")), MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0xcdff0e1a96739c2L, 0x6120f2e858dfcfdcL, "javaLevel")); } public static Object propertyMacro_GetPropertyValue_8845345751178380248(final PropertyMacroContext _context) { return (String) BuildSourcePath__BehaviorDescriptor.getAntPath_id7ro1ZztyOh5.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")), Context.defaultContext(_context)); } public static Object propertyMacro_GetPropertyValue_9076354678688345524(final PropertyMacroContext _context) { SNode mpsAspect = Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x31292e1a60db57afL, "aspects")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect"))).first(); int heapSize; // 0 as default value and 0 as heap size should be distinguished if ((mpsAspect != null) && (isNotEmptyString(mpsAspect.getProperty(MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x6ec3e043947b1eedL, "generationMaxHeapSizeInMb"))))) { heapSize = SPropertyOperations.getInteger(mpsAspect, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x6ec3e043947b1eedL, "generationMaxHeapSizeInMb")); } else { // default size heapSize = 512; } return "-Xmx" + heapSize + "m"; } public static Object propertyMacro_GetPropertyValue_353547257300549687(final PropertyMacroContext _context) { // 0 is the default value (not generated) int size = SPropertyOperations.getInteger(Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x31292e1a60db57afL, "aspects")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect"))).first(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x4e80d5b7ab57aaaL, "generationMaxPermSizeInMb")); return "-XX:MaxPermSize=" + size + "m"; } public static Object propertyMacro_GetPropertyValue_5002485985636846575(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } public static Object propertyMacro_GetPropertyValue_5002485985636839431(final PropertyMacroContext _context) { return "${" + SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + "}"; } public static Object propertyMacro_GetPropertyValue_3239569521490197762(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path")); } public static Object propertyMacro_GetPropertyValue_8986357566212561515(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path")); } public static Object propertyMacro_GetPropertyValue_1374711517443210409(final PropertyMacroContext _context) { return (String) BuildSourcePath__BehaviorDescriptor.getAntPath_id7ro1ZztyOh5.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")), Context.defaultContext(_context)); } public static Object propertyMacro_GetPropertyValue_8702237507672319034(final PropertyMacroContext _context) { SNode mpsAspect = Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x31292e1a60db57afL, "aspects")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect"))).first(); int heapSize; // 0 as default value and 0 as heap size should be distinguished if ((mpsAspect != null) && (isNotEmptyString(mpsAspect.getProperty(MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x6ec3e043947b1eedL, "generationMaxHeapSizeInMb"))))) { heapSize = SPropertyOperations.getInteger(mpsAspect, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x6ec3e043947b1eedL, "generationMaxHeapSizeInMb")); } else { // default size heapSize = 512; } return "-Xmx" + heapSize + "m"; } public static Object propertyMacro_GetPropertyValue_353547257301863279(final PropertyMacroContext _context) { // 0 is the default value (not generated) int size = SPropertyOperations.getInteger(Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x31292e1a60db57afL, "aspects")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect"))).first(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x4e80d5b7ab57aaaL, "generationMaxPermSizeInMb")); return "-XX:MaxPermSize=" + size + "m"; } public static Object propertyMacro_GetPropertyValue_5002485985637417295(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } public static Object propertyMacro_GetPropertyValue_5002485985637417304(final PropertyMacroContext _context) { return "${" + SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + "}"; } public static Object propertyMacro_GetPropertyValue_7795397664372773539(final PropertyMacroContext _context) { return SPropertyOperations.getString(SNodeOperations.cast(ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x31292e1a60db57afL, "aspects"))).findFirst(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect")); } }), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x456c667fe7936bf8L, "excludes")); } public static Object propertyMacro_GetPropertyValue_5970181360963002106(final PropertyMacroContext _context) { return (String) BuildSourcePath__BehaviorDescriptor.getAntPath_id7ro1ZztyOh5.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x1ff930b22643b0ffL, 0x1ff930b22643b100L, "path")), Context.defaultContext(_context)); } public static Object propertyMacro_GetPropertyValue_6354776497085480730(final PropertyMacroContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x5830b38e16a0164cL, 0x5830b38e16a017bdL, "path")); } public static Object propertyMacro_GetPropertyValue_3389822811994148424(final PropertyMacroContext _context) { return SPropertyOperations.getBoolean(((SNode) _context.getVariable("layout_plugin")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb6eL, 0x2f0b11e330465d4dL, "stripImplementation")); } public static Object propertyMacro_GetPropertyValue_3389822811994291045(final PropertyMacroContext _context) { return SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4deb1201L, 0x5b7be37b4deb1202L, "group")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } public static Object propertyMacro_GetPropertyValue_3389822811994291118(final PropertyMacroContext _context) { return SPropertyOperations.getBoolean(((SNode) _context.getVariable("layout_plugin")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb6eL, 0x2f0b11e330465d4dL, "stripImplementation")); } public static Object propertyMacro_GetPropertyValue_4912951749633439329(final PropertyMacroContext _context) { return ((String) _context.getVariable("jarPath")); } public static Object propertyMacro_GetPropertyValue_4912951749633463343(final PropertyMacroContext _context) { return new DependenciesHelper(_context, SNodeOperations.getNodeAncestor(((SNode) _context.getVariable("currentModule")), MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, "jetbrains.mps.build.structure.BuildProject"), false, false)).getContentLocation(_context.getNode()); } public static Object propertyMacro_GetPropertyValue_4912951749633463931(final PropertyMacroContext _context) { return ((String) _context.getVariable("jarPath")); } public static Object propertyMacro_GetPropertyValue_4912951749633460799(final PropertyMacroContext _context) { return ((String) _context.getVariable("jarPath")); } public static Object referenceMacro_GetReferent_7259033139236507287(final ReferenceMacroContext _context) { SNode targetModule = SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x44e5dd192e7c0c18L, 0x44e5dd192e7c0c19L, "targetModule")); return (SNodeOperations.getModel(targetModule).getModule() instanceof TransientModelsModule ? _context.getCopiedOutputNodeForInputNode(targetModule) : targetModule); } public static Object referenceMacro_GetReferent_202934866058978111(final ReferenceMacroContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x44e5dd192e7c0d4aL, 0x44e5dd192e7c0d4bL, "targetFile")); } public static Object referenceMacro_GetReferent_2591537044436106587(final ReferenceMacroContext _context) { return _context.getOutputNodeByInputNodeAndMappingLabel(SNodeOperations.cast(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x23f6fd361bdcfd24L, 0x23f6fd361bdcfd26L, "module")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, "jetbrains.mps.build.mps.structure.BuildMps_Module")), "javaModule"); } public static Object referenceMacro_GetReferent_4643216374596368393(final ReferenceMacroContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")); } public static Object referenceMacro_GetReferent_2591537044436106598(final ReferenceMacroContext _context) { return _context.getCopiedOutputNodeForInputNode(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module"))); } public static Object referenceMacro_GetReferent_7494666316752190010(final ReferenceMacroContext _context) { return _context.getNode(); } public static Object referenceMacro_GetReferent_9200313594511245341(final ReferenceMacroContext _context) { return _context.getNode(); } public static Object referenceMacro_GetReferent_1517654889523632483(final ReferenceMacroContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")); } public static Object referenceMacro_GetReferent_8252715012761547084(final ReferenceMacroContext _context) { SNode result = _context.getOutputNodeByInputNodeAndMappingLabel(((SNode) _context.getVariable("dependency")), "javaModule"); if (result == null) { _context.showErrorMessage(_context.getNode(), "cannot get mps output for " + ((SNode) _context.getVariable("dependency"))); } return result; } public static Object referenceMacro_GetReferent_7753763219109676132(final ReferenceMacroContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")); } public static Object referenceMacro_GetReferent_7753763219109706782(final ReferenceMacroContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")); } public static Object referenceMacro_GetReferent_6592112598314985688(final ReferenceMacroContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb6eL, 0x5b7be37b4dee5919L, "plugin")); } public static Object referenceMacro_GetReferent_3389822811994148416(final ReferenceMacroContext _context) { return SNodeOperations.cast(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bbdcL, 0x5b7be37b4de9bbddL, "target")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, "jetbrains.mps.build.mps.structure.BuildMps_Module")); } public static Object referenceMacro_GetReferent_3389822811994291111(final ReferenceMacroContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x44e5dd192e7771cfL, 0x44e5dd192e7771d0L, "targetModule")); } public static Object referenceMacro_GetReferent_4912951749633427589(final ReferenceMacroContext _context) { return _context.getNode(); } public static Object referenceMacro_GetReferent_4912951749633454965(final ReferenceMacroContext _context) { return _context.getNode(); } public static boolean ifMacro_Condition_8488591998065755520(final IfMacroContext _context) { return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x75cd89729fd8ef2bL, "classpathEntries"))).isNotEmpty(); } public static boolean ifMacro_Condition_7477562766052505828(final IfMacroContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x707952bffb692f6L, "sourcesJarLocation")) != null; } public static boolean ifMacro_Condition_7477562766052512689(final IfMacroContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x67c5a3b7c82af3d6L, "sourceDescriptorFile")) != null; } public static boolean ifMacro_Condition_4743026300739110563(final IfMacroContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x707952bffb692f6L, "sourcesJarLocation")) != null || SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x67c5a3b7c82af3d6L, "sourceDescriptorFile")) != null; } public static boolean ifMacro_Condition_8369506495128850763(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x177c2feaf3463711L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) != null); } public static boolean ifMacro_Condition_8654221991637237394(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x177c2feaf3463711L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) != null) && !(SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x407004b11f167886L, "modelsOnly"))); } public static boolean ifMacro_Condition_8654221991637263558(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x177c2feaf3463711L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) != null); } public static boolean ifMacro_Condition_2794582399917924015(final IfMacroContext _context) { return (boolean) BuildMps_Module__BehaviorDescriptor.isCompilable_id6tOCIA6_7jg.invoke(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module"))); } public static boolean ifMacro_Condition_2540145662854694255(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) != null); } public static boolean ifMacro_Condition_230419292059619677(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) != null); } public static boolean ifMacro_Condition_3335207478149118952(final IfMacroContext _context) { return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dd40dL, "customContent")) && ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dc749L, "deployedJar")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4140393b234482c3L, 0x668c6cfbafac4c8eL, "children"))).isNotEmpty(); } public static boolean ifMacro_Condition_3335207478149152702(final IfMacroContext _context) { return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dd40dL, "customContent")) && ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dd410L, "sourceJar")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4140393b234482c3L, 0x668c6cfbafac4c8eL, "children"))).isNotEmpty(); } public static boolean ifMacro_Condition_2540145662854694313(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) != null); } public static boolean ifMacro_Condition_8252715012761547079(final IfMacroContext _context) { // XXX I've got no idea why we restrict to modules from the same project, technically // any module from the same model could be referenced here with BS_JavaDependencyModule // as it's done for dependencies to regular BuildSource_JavaModule at the template's call site (main, MpsModule->JavaModule) // With current approach, it looks odd to see e.g. mpsDevkit@5_0, where its solutions got translated to JavaModule and depend from // mpsBootstrapCore and mpsTesting languages via classpath element, while dependencies to mpsBootstrapCore's java modules (e.g. openapi, kernel) // are plain BuildSource_JavaModule references. // OTOH, if we move towards partial model regeneration, we might need to reconsider assumptions like 'same model/root' and always rely on x-model // reference restore mechanism (i.e. go on with BS_JavaModule and let generator restore the reference). return SNodeOperations.getContainingRoot(_context.getNode()) == SNodeOperations.getContainingRoot(((SNode) _context.getVariable("dependency"))); } public static boolean ifMacro_Condition_7753763219109750698(final IfMacroContext _context) { return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dd40dL, "customContent")) && ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dc749L, "deployedJar")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4140393b234482c3L, 0x668c6cfbafac4c8eL, "children"))).isNotEmpty(); } public static boolean ifMacro_Condition_7753763219109811956(final IfMacroContext _context) { return SPropertyOperations.getBoolean(_context.getNode(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dd40dL, "customContent")) && ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dd410L, "sourceJar")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4140393b234482c3L, 0x668c6cfbafac4c8eL, "children"))).isNotEmpty(); } public static boolean ifMacro_Condition_7832771629085272620(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb6eL, 0x5b7be37b4dee5919L, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x6cb3984bfe5d2b86L, "vendor")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6cb3984bfe5b72d3L, 0x6cb3984bfe5b72d4L, "icon16")) != null); } public static boolean ifMacro_Condition_8214652431340024702(final IfMacroContext _context) { return isNotEmptyString(SPropertyOperations.getString(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x3acf8ab06f017071L, "bugfixNr"))); } public static boolean ifMacro_Condition_7753544965996885486(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb19dcdL, "updateWebsite")) != null) && (SLinkOperations.getTarget(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb19dcdL, "updateWebsite")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083d2d07L, 0x7a0ffb6a57a037f3L, "updateChannel")) != null); } public static boolean ifMacro_Condition_781140262678082421(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24ac230dL, "company")) != null); } public static boolean ifMacro_Condition_1462305029084462173(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x7a0ffb6a57a27969L, "textColor")) != null); } public static boolean ifMacro_Condition_6845119683729348501(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9b80624L, "progressColor")) != null); } public static boolean ifMacro_Condition_7962467864632495716(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x6e805e55fee09551L, "progressX")) != null); } public static boolean ifMacro_Condition_6845119683729380882(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9b8abc5L, "progressY")) != null); } public static boolean ifMacro_Condition_7962467864633127581(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x6e805e55feeab57eL, "progressHeight")) != null); } public static boolean ifMacro_Condition_1462305029084462384(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb0001cL, "icon32opaque")) != null); } public static boolean ifMacro_Condition_6845119683730300414(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9c0dee8L, "iconToolWindow")) != null); } public static boolean ifMacro_Condition_781140262677966746(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24a9cbfeL, "icon128")) != null); } public static boolean ifMacro_Condition_6845119683729389264(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9b7cdc4L, "icon")) != null); } public static boolean ifMacro_Condition_6099622527106020867(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54a6365f080e9d69L, "editorBGUrl")) != null); } public static boolean ifMacro_Condition_781140262678141912(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24ac230dL, "company")) != null); } public static boolean ifMacro_Condition_1462305029084461973(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb19dcdL, "updateWebsite")) != null); } public static boolean ifMacro_Condition_1462305029084452923(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x611c17467fa8199L, "help")) != null); } public static boolean ifMacro_Condition_5894421362117318861(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x51cd30ffb57480b2L, "documentation")) != null); } public static boolean ifMacro_Condition_5894421362117645774(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x51cd30ffb57a2995L, "support")) != null); } public static boolean ifMacro_Condition_8877724874822463465(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x7b3403bcc96cf3b6L, "feedbackUrl")) != null); } public static boolean ifMacro_Condition_781140262678203505(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24ac04a2L, "whatsnew")) != null); } public static boolean ifMacro_Condition_5894421362118001937(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x51cd30ffb57f92b9L, "keymap")) != null); } public static boolean ifMacro_Condition_5894421362118347991(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x51cd30ffb584b4d4L, "thirdparty")) != null); } public static boolean ifMacro_Condition_781140262678249380(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24acb24dL, "stats")) != null); } public static boolean ifMacro_Condition_1462305029084461806(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb0001cL, "icon32opaque")) != null) && neq_x583g4_a0a0a671(BuildSourcePath__BehaviorDescriptor.getRelativePath_id4Kip2_918YF.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb0001cL, "icon32opaque"))), BuildSourcePath__BehaviorDescriptor.getRelativePath_id4Kip2_918YF.invoke(SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb0001aL, "icon32")))); } public static boolean ifMacro_Condition_781140262679960794(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24a9cbfeL, "icon128")) != null); } public static boolean ifMacro_Condition_6845119683731096025(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9b7cdc4L, "icon")) != null); } public static boolean ifMacro_Condition_6845119683731099314(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9c0dee8L, "iconToolWindow")) != null); } public static boolean ifMacro_Condition_6099622527106052284(final IfMacroContext _context) { return (SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54a6365f080e9d69L, "editorBGUrl")) != null); } public static boolean ifMacro_Condition_2172791612910915663(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x1e274e75c23f88b2L, "description")) != null); } public static boolean ifMacro_Condition_7832771629085134029(final IfMacroContext _context) { return isNotEmptyString(SPropertyOperations.getString(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x6cb3984bfe5d2b86L, "vendor")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6cb3984bfe5b72d3L, 0x6cb3984bfe5b72d5L, "url"))); } public static boolean ifMacro_Condition_7832771629085133811(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x6cb3984bfe5d2b86L, "vendor")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6cb3984bfe5b72d3L, 0x6cb3984bfe5b72d4L, "icon16")) != null); } public static boolean ifMacro_Condition_7832771629085133713(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x6cb3984bfe5d2b86L, "vendor")) != null) && isNotEmptyString(SPropertyOperations.getString(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x6cb3984bfe5d2b86L, "vendor")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6cb3984bfe5b72d3L, 0x6cb3984bfe5b72d6L, "name"))); } public static boolean ifMacro_Condition_2339934328870304024(final IfMacroContext _context) { return (SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x1131bde13f3dbe2aL, "pluginXml")) == null); } public static boolean ifMacro_Condition_288299486408319666(final IfMacroContext _context) { return ((Boolean) _context.getVariable("var:mpsBootCore")); } public static boolean ifMacro_Condition_4297162197631063250(final IfMacroContext _context) { return SPropertyOperations.getBoolean(((SNode) _context.getVariable("var:genOptions")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x3ba296405b6f720eL, "parallel")); } public static boolean ifMacro_Condition_3733986151372083094(final IfMacroContext _context) { return ((SNode) _context.getVariable("var:compilerOptions")) != null && isNotEmptyString(SPropertyOperations.getString(((SNode) _context.getVariable("var:compilerOptions")), MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0xcdff0e1a96739c2L, 0x6120f2e858dfcfdcL, "javaLevel"))); } public static boolean ifMacro_Condition_8845345751178285144(final IfMacroContext _context) { return ((MPSModulesPartitioner.Chunk) _context.getVariable("var:chunk")).isBootstrap(); } public static boolean ifMacro_Condition_5970181360960165170(final IfMacroContext _context) { return ((MPSModulesPartitioner.Chunk) _context.getVariable("var:chunk")).isConflicting(_context.getNode()); } public static boolean ifMacro_Condition_353547257300591823(final IfMacroContext _context) { return SPropertyOperations.getInteger(Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x31292e1a60db57afL, "aspects")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect"))).first(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x4e80d5b7ab57aaaL, "generationMaxPermSizeInMb")) != 0; } public static boolean ifMacro_Condition_398731435601112752(final IfMacroContext _context) { return Sequence.fromIterable(((MPSModulesPartitioner) _context.getVariable("var:closure")).getExternal()).isNotEmpty(); } public static boolean ifMacro_Condition_6886349771916699399(final IfMacroContext _context) { return !((SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")).equals("mpsBootstrapCore") && SModelOperations.getModelName(SNodeOperations.getModel(_context.getNode())).equals("jetbrains.mps.ide.build"))); } public static boolean ifMacro_Condition_1787667533297084982(final IfMacroContext _context) { SNode mpsAspect = ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x31292e1a60db57afL, "aspects"))).findFirst(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect")); } }); return (mpsAspect != null) && SPropertyOperations.getBoolean(SNodeOperations.cast(mpsAspect, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x18cf12266aabddbfL, "testGeneration")); } public static boolean ifMacro_Condition_353547257301863303(final IfMacroContext _context) { return SPropertyOperations.getInteger(Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x31292e1a60db57afL, "aspects")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect"))).first(), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x4e80d5b7ab57aaaL, "generationMaxPermSizeInMb")) != 0; } public static boolean ifMacro_Condition_5002485985634204066(final IfMacroContext _context) { SNode ba = ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x31292e1a60db57afL, "aspects"))).findFirst(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect")); } }); if ((ba == null)) { return false; } return isNotEmptyString(SPropertyOperations.getString(SNodeOperations.cast(ba, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x456c667fe7936bf8L, "excludes"))); } public static boolean ifMacro_Condition_3239569521490198041(final IfMacroContext _context) { return Sequence.fromIterable(((MPSModulesPartitioner) _context.getVariable("var:closure")).getExternal()).isNotEmpty(); } public static boolean ifMacro_Condition_4101476690146989263(final IfMacroContext _context) { return ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x5830b38e16a0164cL, 0x5830b38e16d823d3L, "project")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x5c3f3e2c1ce9ac70L, "plugins"))).findFirst(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return Sequence.fromIterable(BuildPlugin__BehaviorDescriptor.getImportedLibraries_id3zFnP6MwWdL.invoke(it)).contains(BuildMPSPlugin__BehaviorDescriptor.getMpsLibrary_id3zFnP6MM9ge.invoke(SNodeOperations.asSConcept(MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xc0bde9fc71699d9L, "jetbrains.mps.build.mps.structure.BuildMPSPlugin")))); } }) != null; } public static boolean ifMacro_Condition_6354776497085480789(final IfMacroContext _context) { return ListSequence.fromList(((List<SNode>) _context.getVariable("var:dependency"))).isNotEmpty(); } public static boolean ifMacro_Condition_3389822811994148406(final IfMacroContext _context) { return SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bbdcL, 0x5b7be37b4de9bbddL, "target")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, "jetbrains.mps.build.mps.structure.BuildMps_Module")); } public static boolean ifMacro_Condition_3389822811994148457(final IfMacroContext _context) { return SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bbdcL, 0x5b7be37b4de9bbddL, "target")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d2060eL, "jetbrains.mps.build.mps.structure.BuildMps_DevKit")); } public static SNode sourceNodeQuery_2303926226081111358(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508334bdeaL, 0x48e82d508334bdecL, "folder")); } public static SNode sourceNodeQuery_1065091787225169766(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x21286cd3b0f27758L, 0x21286cd3b0f28a50L, "folder")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x1ff930b22643b0ffL, 0x1ff930b22643b100L, "path")); } public static SNode sourceNodeQuery_8252715012761560260(final SourceSubstituteMacroNodeContext _context) { return ((MPSModulesClosure) _context.getVariable("var:mdeps")).getInitial(); } public static SNode sourceNodeQuery_6859736767834858755(final SourceSubstituteMacroNodeContext _context) { return ((MPSModulesClosure) _context.getVariable("var:mdeps")).getInitial(); } public static SNode sourceNodeQuery_8369506495128850710(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x177c2feaf3463711L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")); } public static SNode sourceNodeQuery_8654221991637113346(final SourceSubstituteMacroNodeContext _context) { return (SNode) BuildSourcePath__BehaviorDescriptor.getParent_id7wpYgMyTXsR.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x177c2feaf3463711L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path"))); } public static SNode sourceNodeQuery_8654221991637263395(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c195c50L, 0x3b60c4a45c195c52L, "folder")); } public static SNode sourceNodeQuery_230419292059351208(final SourceSubstituteMacroNodeContext _context) { return (SNode) BuildSourcePath__BehaviorDescriptor.getParent_id7wpYgMyTXsR.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path"))); } public static SNode sourceNodeQuery_230419292059619665(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508334bdeaL, 0x48e82d508334bdecL, "folder")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x1ff930b22643b0ffL, 0x1ff930b22643b100L, "path")); } public static SNode sourceNodeQuery_2540145662854694674(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508334bdeaL, 0x48e82d508334bdecL, "folder")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x1ff930b22643b0ffL, 0x1ff930b22643b100L, "path")); } public static SNode sourceNodeQuery_4912951749633709512(final SourceSubstituteMacroNodeContext _context) { return ((Tuples._2<SNode, String>) _context.getVariable("var:target"))._0(); } public static SNode sourceNodeQuery_6592112598314985660(final SourceSubstituteMacroNodeContext _context) { return SNodeOperations.copyNode(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb6eL, 0x5b7be37b4dee5919L, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x5b7be37b4def2c96L, "containerName"))); } public static SNode sourceNodeQuery_7832771629085272499(final SourceSubstituteMacroNodeContext _context) { return SNodeOperations.copyNode(SLinkOperations.getTarget(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb6eL, 0x5b7be37b4dee5919L, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x6cb3984bfe5d2b86L, "vendor")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6cb3984bfe5b72d3L, 0x6cb3984bfe5b72d4L, "icon16"))); } public static SNode sourceNodeQuery_7753544965996885758(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb0001bL, "icon16")); } public static SNode sourceNodeQuery_7753544965996885821(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb0001aL, "icon32")); } public static SNode sourceNodeQuery_7753544965996885835(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feb0001cL, "icon32opaque")); } public static SNode sourceNodeQuery_781140262679960784(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xad72aee24a9cbfeL, "icon128")); } public static SNode sourceNodeQuery_6845119683731096015(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9b7cdc4L, "icon")); } public static SNode sourceNodeQuery_6845119683731099304(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9c0dee8L, "iconToolWindow")); } public static SNode sourceNodeQuery_772379520212560178(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0xab80b14d5f245eeL, "welcomeLogo")); } public static SNode sourceNodeQuery_6099622527106052274(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54a6365f080e9d69L, "editorBGUrl")); } public static SNode sourceNodeQuery_1462305029084462284(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feaf4b14L, "splashScreen")); } public static SNode sourceNodeQuery_1462305029084462298(final SourceSubstituteMacroNodeContext _context) { return SLinkOperations.getTarget(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x54c4eb89feaf4b15L, "aboutScreen")); } public static SNode sourceNodeQuery_2339934328870356487(final SourceSubstituteMacroNodeContext _context) { return SNodeOperations.copyNode(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x1131bde13f3dbe2aL, "pluginXml"))); } public static SNode sourceNodeQuery_3389822811994148446(final SourceSubstituteMacroNodeContext _context) { return SNodeOperations.copyNode(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bbdcL, 0x5b7be37b4de9bbddL, "target")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path"))); } public static Object templateArgumentQuery_7753544965996903195(final TemplateArgumentContext _context) { return SNodeOperations.cast(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x6b9a2011083f9404L, 0x6b9a2011083f9406L, "element")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, "jetbrains.mps.build.mps.structure.BuildMps_Branding")); } public static Object templateArgumentQuery_4964617264469340744(final TemplateArgumentContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x44e5dd192e7771cfL, 0x44e5dd192e7771d0L, "targetModule")); } public static Object templateArgumentQuery_4964617264469629189(final TemplateArgumentContext _context) { return SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x44e5dd192e77725eL, 0x44e5dd192e77725fL, "targetPath")); } public static Object templateArgumentQuery_4912951749633721708(final TemplateArgumentContext _context) { return _context.getNode(); } public static Object templateArgumentQuery_4912951749633723518(final TemplateArgumentContext _context) { return ((Tuples._2<SNode, String>) _context.getVariable("var:target"))._1(); } public static Iterable<SNode> sourceNodesQuery_2303926226081111354(final SourceSubstituteMacroNodesContext _context) { return SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341d31L, "sources")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508334bdeaL, "jetbrains.mps.build.mps.structure.BuildMps_ModuleJavaSource")); } public static Iterable<SNode> sourceNodesQuery_2389279258789752324(final SourceSubstituteMacroNodesContext _context) { return SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341d31L, "sources")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x21286cd3b0f27758L, "jetbrains.mps.build.mps.structure.BuildMps_ModuleTestSource")); } public static Iterable<SNode> sourceNodesQuery_4267986820121149056(final SourceSubstituteMacroNodesContext _context) { List<SNode> result = new ArrayList<SNode>(); for (SNode mod : Sequence.fromIterable(((MPSModulesClosure) _context.getVariable("var:mdeps")).getModules()).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return (boolean) BuildMps_Module__BehaviorDescriptor.isCompilable_id6tOCIA6_7jg.invoke(it); } }).sort(new ISelector<SNode, String>() { public String select(SNode it) { return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } }, true)) { SNode loopnode = SModelOperations.createNewNode(_context.getOutputModel(), null, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x44e5dd192e7771cfL, "jetbrains.mps.build.mps.structure.GeneratorInternal_BuildMps_Module")); SLinkOperations.setTarget(loopnode, MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x44e5dd192e7771cfL, 0x44e5dd192e7771d0L, "targetModule"), mod); ListSequence.fromList(result).addElement(loopnode); } return result; } public static Iterable<SNode> sourceNodesQuery_7259033139236497711(final SourceSubstituteMacroNodesContext _context) { MPSModulesClosure.RequiredJavaModules requiredAndReexp = ((MPSModulesClosure) _context.getVariable("var:mdeps")).getRequiredJava(); List<SNode> result = new ArrayList<SNode>(); for (SNode mod : Sequence.fromIterable(requiredAndReexp.getModules()).sort(new ISelector<SNode, String>() { public String select(SNode it) { return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } }, true)) { SNode loopnode = SModelOperations.createNewNode(_context.getOutputModel(), null, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x44e5dd192e7c0c18L, "jetbrains.mps.build.structure.GeneratorInternal_BuildSource_JavaModule")); SLinkOperations.setTarget(loopnode, MetaAdapterFactory.getReferenceLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x44e5dd192e7c0c18L, 0x44e5dd192e7c0c19L, "targetModule"), mod); SPropertyOperations.set(loopnode, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x44e5dd192e7c0c18L, 0x44e5dd192e7c0c1aL, "targetReexport"), "" + (requiredAndReexp.isReexported(mod))); ListSequence.fromList(result).addElement(loopnode); } return result; } public static Iterable<SNode> sourceNodesQuery_3717132724153192091(final SourceSubstituteMacroNodesContext _context) { List<SNode> result = new ArrayList<SNode>(); for (SNode module : Sequence.fromIterable(((MPSModulesClosure) _context.getVariable("var:mdeps")).getModules()).concat(Sequence.fromIterable(Sequence.<SNode>singleton(((MPSModulesClosure) _context.getVariable("var:mdeps")).getInitial()))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.getContainingRoot(_context.getNode()) == SNodeOperations.getContainingRoot(it); } }).sort(new ISelector<SNode, String>() { public String select(SNode it) { return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } }, true)) { ListSequence.fromList(result).addSequence(Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(module, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341cb8L, "dependencies")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, "jetbrains.mps.build.mps.structure.BuildMps_ModuleDependencyJar"))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return (SLinkOperations.getTarget(it, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, 0x26d578f4b6e3757fL, "customLocation")) == null); } }).select(new ISelector<SNode, SNode>() { public SNode select(SNode it) { return SNodeOperations.copyNode(SLinkOperations.getTarget(it, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, 0x3b60c4a45c197e1aL, "path"))); } })); } return result; } public static Iterable<SNode> sourceNodesQuery_6859736767834858211(final SourceSubstituteMacroNodesContext _context) { List<SNode> result = new ArrayList<SNode>(); for (SNode module : Sequence.fromIterable(((MPSModulesClosure) _context.getVariable("var:mdeps")).getModules()).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.getContainingRoot(_context.getNode()) != SNodeOperations.getContainingRoot(it); } }).sort(new ISelector<SNode, String>() { public String select(SNode it) { return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } }, true)) { ListSequence.fromList(result).addSequence(Sequence.fromIterable(SLinkOperations.collect(Sequence.fromIterable(SNodeOperations.ofConcept(ListSequence.fromList(SLinkOperations.getChildren(module, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341cb8L, "dependencies"))).select(new ISelector<SNode, SNode>() { public SNode select(SNode it) { return (SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x64bd442e1cf7aaeeL, "jetbrains.mps.build.mps.structure.BuildMps_ExtractedModuleDependency")) ? SLinkOperations.getTarget(SNodeOperations.cast(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x64bd442e1cf7aaeeL, "jetbrains.mps.build.mps.structure.BuildMps_ExtractedModuleDependency")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x64bd442e1cf7aaeeL, 0x64bd442e1cf7aaefL, "dependency")) : it); } }), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, "jetbrains.mps.build.mps.structure.BuildMps_ModuleDependencyJar"))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return (SLinkOperations.getTarget(it, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, 0x26d578f4b6e3757fL, "customLocation")) == null); } }), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, 0x3b60c4a45c197e1aL, "path")))); } return ListSequence.fromList(result).distinct().select(new ISelector<SNode, SNode>() { public SNode select(SNode it) { SNode loopnode = SModelOperations.createNewNode(_context.getOutputModel(), null, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x44e5dd192e77725eL, "jetbrains.mps.build.mps.structure.GeneratorInternal_BuildSourcePath")); SLinkOperations.setTarget(loopnode, MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x44e5dd192e77725eL, 0x44e5dd192e77725fL, "targetPath"), it); return loopnode; } }); } public static Iterable<SNode> sourceNodesQuery_202934866058978115(final SourceSubstituteMacroNodesContext _context) { List<SNode> result = new ArrayList<SNode>(); for (SNode module : Sequence.fromIterable(((MPSModulesClosure) _context.getVariable("var:mdeps")).getModules()).sort(new ISelector<SNode, String>() { public String select(SNode it) { return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } }, true)) { ListSequence.fromList(result).addSequence(Sequence.fromIterable(SLinkOperations.collect(Sequence.fromIterable(SNodeOperations.ofConcept(ListSequence.fromList(SLinkOperations.getChildren(module, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341cb8L, "dependencies"))).select(new ISelector<SNode, SNode>() { public SNode select(SNode it) { return (SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x64bd442e1cf7aaeeL, "jetbrains.mps.build.mps.structure.BuildMps_ExtractedModuleDependency")) ? SLinkOperations.getTarget(SNodeOperations.cast(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x64bd442e1cf7aaeeL, "jetbrains.mps.build.mps.structure.BuildMps_ExtractedModuleDependency")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x64bd442e1cf7aaeeL, 0x64bd442e1cf7aaefL, "dependency")) : it); } }), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, "jetbrains.mps.build.mps.structure.BuildMps_ModuleDependencyJar"))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return (SLinkOperations.getTarget(it, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, 0x26d578f4b6e3757fL, "customLocation")) != null); } }), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, 0x26d578f4b6e3757fL, "customLocation")))); } return ListSequence.fromList(result).distinct().select(new ISelector<SNode, SNode>() { public SNode select(SNode it) { SNode loopnode = SModelOperations.createNewNode(_context.getOutputModel(), null, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x44e5dd192e7c0d4aL, "jetbrains.mps.build.structure.GeneratorInternal_BuildSource_SingleFile")); SLinkOperations.setTarget(loopnode, MetaAdapterFactory.getReferenceLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x44e5dd192e7c0d4aL, 0x44e5dd192e7c0d4bL, "targetFile"), SLinkOperations.getTarget(it, MetaAdapterFactory.getReferenceLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4ddcec86afb2f64cL, 0x4ddcec86afb2f64dL, "jar"))); return loopnode; } }); } public static Iterable<SNode> sourceNodesQuery_1500819558096263527(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x14d3fb6fb843ebddL, 0x14d3fb6fb843ebdeL, "modules")); } public static Iterable<SNode> sourceNodesQuery_8315586463637239065(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4140393b234482c3L, 0x668c6cfbafac4c8eL, "children")); } public static Iterable<SNode> sourceNodesQuery_4643216374596368654(final SourceSubstituteMacroNodesContext _context) { return Sequence.fromIterable(new MPSModulesClosure(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x6a3e160a3efe6275L, "module")), new MPSModulesClosure.ModuleDependenciesOptions()).runtimeDependencies().getModules()).sort(new ISelector<SNode, String>() { public String select(SNode it) { return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } }, true); } public static Iterable<SNode> sourceNodesQuery_4743026300739026814(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.collect(SNodeOperations.ofConcept(ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x6a3e160a3efe6275L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341cb8L, "dependencies"))).select(new ISelector<SNode, SNode>() { public SNode select(SNode it) { return (SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x64bd442e1cf7aaeeL, "jetbrains.mps.build.mps.structure.BuildMps_ExtractedModuleDependency")) ? SLinkOperations.getTarget(SNodeOperations.cast(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x64bd442e1cf7aaeeL, "jetbrains.mps.build.mps.structure.BuildMps_ExtractedModuleDependency")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x64bd442e1cf7aaeeL, 0x64bd442e1cf7aaefL, "dependency")) : it); } }), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, "jetbrains.mps.build.mps.structure.BuildMps_ModuleDependencyJar")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c197e19L, 0x3b60c4a45c197e1aL, "path")); } public static Iterable<SNode> sourceNodesQuery_8488591998065731739(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6a3e160a3efe6274L, 0x75cd89729fd8ef2bL, "classpathEntries")); } public static Iterable<SNode> sourceNodesQuery_8654221991637263183(final SourceSubstituteMacroNodesContext _context) { Set<SNode> modelRoots = SetSequence.fromSet(new HashSet<SNode>()); SetSequence.fromSet(modelRoots).addSequence(Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x177c2feaf3463711L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341d31L, "sources")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c195c50L, "jetbrains.mps.build.mps.structure.BuildMps_ModuleModelRoot")))); if (SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x177c2feaf3463711L, "module")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, "jetbrains.mps.build.mps.structure.BuildMps_Language"))) { SetSequence.fromSet(modelRoots).addSequence(Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.collectMany(SLinkOperations.collect(SLinkOperations.getChildren(SNodeOperations.cast(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x177c2feaf3463711L, "module")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, "jetbrains.mps.build.mps.structure.BuildMps_Language")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, 0x6d1df6c2700aeb88L, "managedGenerators")), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6d1df6c2700aeb81L, 0x6d1df6c2700aeb82L, "generator")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341d31L, "sources")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c195c50L, "jetbrains.mps.build.mps.structure.BuildMps_ModuleModelRoot")))); } return SetSequence.fromSet(modelRoots).sort(new ISelector<SNode, String>() { public String select(SNode it) { return (String) BuildSourcePath__BehaviorDescriptor.getRelativePath_id4Kip2_918YF.invoke(SLinkOperations.getTarget(it, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3b60c4a45c195c50L, 0x3b60c4a45c195c52L, "folder"))); } }, true); } public static Iterable<SNode> sourceNodesQuery_4356762679305730694(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x3c765492deb27a75L, "jarLocations")); } public static Iterable<SNode> sourceNodesQuery_230419292059623319(final SourceSubstituteMacroNodesContext _context) { return SNodeOperations.ofConcept(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341d31L, "sources")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508334bdeaL, "jetbrains.mps.build.mps.structure.BuildMps_ModuleJavaSource")); } public static Iterable<SNode> sourceNodesQuery_3335207478149112020(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dc749L, "deployedJar")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4140393b234482c3L, 0x668c6cfbafac4c8eL, "children")); } public static Iterable<SNode> sourceNodesQuery_7862711839426437495(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.collect(SLinkOperations.getChildren(SNodeOperations.as(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, "jetbrains.mps.build.mps.structure.BuildMps_Language")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, 0x6d1df6c2700aeb88L, "managedGenerators")), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6d1df6c2700aeb81L, 0x6d1df6c2700aeb82L, "generator")); } public static Iterable<SNode> sourceNodesQuery_2540145662854694642(final SourceSubstituteMacroNodesContext _context) { Set<SNode> sources = SetSequence.fromSet(new HashSet<SNode>()); SetSequence.fromSet(sources).addSequence(Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341d31L, "sources")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508334bdeaL, "jetbrains.mps.build.mps.structure.BuildMps_ModuleJavaSource")))); if (SNodeOperations.isInstanceOf(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, "jetbrains.mps.build.mps.structure.BuildMps_Language"))) { SetSequence.fromSet(sources).addSequence(Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.collectMany(SLinkOperations.collect(SLinkOperations.getChildren(SNodeOperations.cast(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x11918e0f209b83e9L, "module")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, "jetbrains.mps.build.mps.structure.BuildMps_Language")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, 0x6d1df6c2700aeb88L, "managedGenerators")), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6d1df6c2700aeb81L, 0x6d1df6c2700aeb82L, "generator")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341d31L, "sources")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508334bdeaL, "jetbrains.mps.build.mps.structure.BuildMps_ModuleJavaSource")))); } return SetSequence.fromSet(sources).sort(new ISelector<SNode, String>() { public String select(SNode it) { return (String) BuildSourcePath__BehaviorDescriptor.getRelativePath_id4Kip2_918YF.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(it, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508334bdeaL, 0x48e82d508334bdecL, "folder")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x1ff930b22643b0ffL, 0x1ff930b22643b100L, "path"))); } }, true); } public static Iterable<SNode> sourceNodesQuery_3335207478149152717(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dd410L, "sourceJar")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4140393b234482c3L, 0x668c6cfbafac4c8eL, "children")); } public static Iterable<SNode> sourceNodesQuery_7753763219109676125(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x3c765492deb27a75L, "jarLocations")); } public static Iterable<SNode> sourceNodesQuery_7753763219109750713(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dc749L, "deployedJar")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4140393b234482c3L, 0x668c6cfbafac4c8eL, "children")); } public static Iterable<SNode> sourceNodesQuery_7753763219109811971(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x2e490987db3dd410L, "sourceJar")), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4140393b234482c3L, 0x668c6cfbafac4c8eL, "children")); } public static Iterable<SNode> sourceNodesQuery_3389822811994255065(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb6eL, 0x5b7be37b4dee5919L, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x5b7be37b4de9bbeaL, "content")); } public static Iterable<SNode> sourceNodesQuery_6673387549253815203(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4140393b234482c3L, 0x668c6cfbafac4c8eL, "children")); } public static Iterable<SNode> sourceNodesQuery_6845119683729431098(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(((SNode) _context.getVariable("branding")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6b9a2011083b778dL, 0x5efec015d9ba0016L, "customXmlElement")); } public static Iterable<SNode> sourceNodesQuery_6592112598314985296(final SourceSubstituteMacroNodesContext _context) { return ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x5b7be37b4de9bbd4L, "dependencies"))).select(new ISelector<SNode, SNode>() { public SNode select(SNode it) { return SNodeOperations.copyNode(it); } }); } public static Iterable<SNode> sourceNodesQuery_1359186315027134099(final SourceSubstituteMacroNodesContext _context) { return SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4dee437cL, 0x5b7be37b4dee437dL, "plugin")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4de9bb74L, 0x12dcccc092aac8d3L, "xml")); } public static Iterable<SNode> sourceNodesQuery_978600701690054686(final SourceSubstituteMacroNodesContext _context) { return Sequence.fromIterable(Sequence.fromArray(((String[]) _context.getVariable("var:requiredPlugins")))).select(new ISelector<String, SNode>() { public SNode select(String it) { return createGeneratorInternal_String_x583g4_a0a0a0a0zj(it); } }); } public static Iterable<SNode> sourceNodesQuery_5970181360960745073(final SourceSubstituteMacroNodesContext _context) { return ModuleFinder.findModules(((MPSModulesPartitioner) _context.getVariable("var:closure")).getExternal(), _context, _context.getNode()); } public static Iterable<SNode> sourceNodesQuery_8845345751178284778(final SourceSubstituteMacroNodesContext _context) { return ListSequence.fromList(((MPSModulesPartitioner) _context.getVariable("var:closure")).getChunks()).select(new ISelector<MPSModulesPartitioner.Chunk, SNode>() { public SNode select(MPSModulesPartitioner.Chunk it) { SNode loopnode = SModelOperations.createNewNode(_context.getOutputModel(), null, MetaAdapterFactory.getConcept(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x10802efe25aL, "jetbrains.mps.lang.core.structure.BaseConcept")); loopnode.putUserObject("chunk", it); return loopnode; } }); } public static Iterable<SNode> sourceNodesQuery_8845345751178284914(final SourceSubstituteMacroNodesContext _context) { return SetSequence.fromSet(((MPSModulesPartitioner.Chunk) _context.getVariable("var:chunk")).getModules()).sort(new ISelector<SNode, String>() { public String select(SNode it) { return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } }, true).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return !(SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4c6db07d2e56a8b4L, "jetbrains.mps.build.mps.structure.BuildMps_Generator"))); } }); } public static Iterable<SNode> sourceNodesQuery_5002485985636840318(final SourceSubstituteMacroNodesContext _context) { return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x4df58c6f18f84a22L, "macros"))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x668c6cfbafadd002L, "jetbrains.mps.build.structure.BuildFolderMacro")); } }); } public static Iterable<SNode> sourceNodesQuery_3239569521490197891(final SourceSubstituteMacroNodesContext _context) { return Sequence.fromIterable(Sequence.fromArray(((String[]) _context.getVariable("var:requiredPlugins")))).select(new ISelector<String, SNode>() { public SNode select(String it) { return createGeneratorInternal_String_x583g4_a0a0a0a0ek(it); } }); } public static Iterable<SNode> sourceNodesQuery_8986357566212684075(final SourceSubstituteMacroNodesContext _context) { return ((Iterable<SNode>) _context.getVariable("var:closureForGenTest")); } public static Iterable<SNode> sourceNodesQuery_3239569521490197949(final SourceSubstituteMacroNodesContext _context) { return ListSequence.fromList(((MPSModulesPartitioner) _context.getVariable("var:closure")).getChunks()).translate(new ITranslator2<MPSModulesPartitioner.Chunk, SNode>() { public Iterable<SNode> translate(MPSModulesPartitioner.Chunk it) { return it.getModules(); } }).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return !(SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4c6db07d2e56a8b4L, "jetbrains.mps.build.mps.structure.BuildMps_Generator"))); } }).sort(new ISelector<SNode, String>() { public String select(SNode it) { return SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")); } }, true); } public static Iterable<SNode> sourceNodesQuery_5002485985637417315(final SourceSubstituteMacroNodesContext _context) { return ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x4df58c6f18f84a22L, "macros"))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x668c6cfbafadd002L, "jetbrains.mps.build.structure.BuildFolderMacro")); } }); } public static Iterable<SNode> sourceNodesQuery_5970181360963002103(final SourceSubstituteMacroNodesContext _context) { Iterable<SNode> modules = SNodeOperations.ofConcept(ListSequence.fromList(((MPSModulesPartitioner) _context.getVariable("var:closure")).getChunks()).where(new IWhereFilter<MPSModulesPartitioner.Chunk>() { public boolean accept(MPSModulesPartitioner.Chunk it) { return !(it.isBootstrap()); } }).translate(new ITranslator2<MPSModulesPartitioner.Chunk, SNode>() { public Iterable<SNode> translate(MPSModulesPartitioner.Chunk it) { return it.getModules(); } }), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, "jetbrains.mps.build.mps.structure.BuildMps_Module")); Iterable<SNode> sources = SLinkOperations.collect(Sequence.fromIterable(modules).translate(new ITranslator2<SNode, SNode>() { public Iterable<SNode> translate(SNode it) { return Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(it, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341d31L, "sources")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508334bdeaL, "jetbrains.mps.build.mps.structure.BuildMps_ModuleJavaSource"))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SPropertyOperations.getBoolean(it, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508334bdeaL, 0x52da585100dba65aL, "isGenerated")); } }); } }), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508334bdeaL, 0x48e82d508334bdecL, "folder")); Iterable<SNode> testSources = SLinkOperations.collect(Sequence.fromIterable(modules).translate(new ITranslator2<SNode, SNode>() { public Iterable<SNode> translate(SNode it) { return Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(it, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, 0x48e82d5083341d31L, "sources")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x21286cd3b0f27758L, "jetbrains.mps.build.mps.structure.BuildMps_ModuleTestSource"))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SPropertyOperations.getBoolean(it, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x21286cd3b0f27758L, 0x66103f1a46523841L, "isGenerated")); } }); } }), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x21286cd3b0f27758L, 0x21286cd3b0f28a50L, "folder")); return Sequence.fromIterable(sources).union(Sequence.fromIterable(testSources)); } public static Iterable<SNode> sourceNodesQuery_6354776497113862138(final SourceSubstituteMacroNodesContext _context) { return ((List<SNode>) _context.getVariable("var:dependency")); } public static Iterable<SNode> sourceNodesQuery_3389822811994291055(final SourceSubstituteMacroNodesContext _context) { return ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4deb1201L, 0x5b7be37b4deb1202L, "group")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x14d3fb6fb843ebddL, 0x14d3fb6fb843ebdeL, "modules"))).subtract(Sequence.fromIterable(SLinkOperations.collect(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4deb1201L, 0x37fdb3de482e2b2fL, "customPackaging")), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x37fdb3de482e2b27L, 0x37fdb3de482e2b28L, "target")))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, "jetbrains.mps.build.mps.structure.BuildMps_Module")) && !(SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4c6db07d2e56a8b4L, "jetbrains.mps.build.mps.structure.BuildMps_Generator"))); } }).select(new ISelector<SNode, SNode>() { public SNode select(SNode it) { SNode loopnode = SModelOperations.createNewNode(_context.getOutputModel(), null, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x44e5dd192e7771cfL, "jetbrains.mps.build.mps.structure.GeneratorInternal_BuildMps_Module")); SLinkOperations.setTarget(loopnode, MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x44e5dd192e7771cfL, 0x44e5dd192e7771d0L, "targetModule"), it); return loopnode; } }); } public static Iterable<SNode> sourceNodesQuery_3389822811994291141(final SourceSubstituteMacroNodesContext _context) { return ListSequence.fromList(SLinkOperations.getChildren(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5b7be37b4deb1201L, 0x5b7be37b4deb1202L, "group")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x14d3fb6fb843ebddL, 0x14d3fb6fb843ebdeL, "modules"))).where(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d2060eL, "jetbrains.mps.build.mps.structure.BuildMps_DevKit")) && (SLinkOperations.getTarget(it, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) != null); } }).select(new ISelector<SNode, SNode>() { public SNode select(SNode it) { return SNodeOperations.copyNode(SLinkOperations.getTarget(it, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path"))); } }); } public static void mapSrcMacro_post_mapper_3747750384908360402(final MapSrcMacroPostProcContext _context) { new DependenciesHelper(_context, SNodeOperations.getNodeAncestor(_context.getNode(), MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, "jetbrains.mps.build.structure.BuildProject"), false, false)).preserveLocations(_context.getNode(), _context.getOutputNode()); } public static SNode weaving_MappingRule_ContextNodeQuery_2413798559262849243(final WeavingMappingRuleContext _context) { return _context.getCopiedOutputNodeForInputNode(_context.getNode()); } public static void mappingScript_CodeBlock_3189788309732145595(final MappingScriptContext _context) { for (SNode project : SModelOperations.roots(_context.getModel(), MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, "jetbrains.mps.build.structure.BuildProject"))) { if (!(_context.isDirty(project))) { continue; } SNode originalProject = SNodeOperations.as(_context.getOriginalCopiedInputNode(project), MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, "jetbrains.mps.build.structure.BuildProject")); if ((originalProject == null)) { _context.showErrorMessage(project, "no original project is found for " + SPropertyOperations.getString(project, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))); continue; } PathConverter pathConverter = new PathConverter(originalProject); VisibleModules visibleModules = new VisibleModules(project); visibleModules.collect(); Iterable<SNode> parts = SLinkOperations.getChildren(project, MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x668c6cfbafacf6f2L, "parts")); parts = Sequence.fromIterable(SLinkOperations.collectMany(SNodeOperations.ofConcept(parts, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x14d3fb6fb843ebddL, "jetbrains.mps.build.mps.structure.BuildMps_Group")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x14d3fb6fb843ebddL, 0x14d3fb6fb843ebdeL, "modules"))).union(Sequence.fromIterable(parts)).toListSequence(); for (SNode module : SNodeOperations.ofConcept(parts, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, "jetbrains.mps.build.mps.structure.BuildMps_AbstractModule"))) { if ((SLinkOperations.getTarget(module, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")) == null)) { continue; } ModuleLoader.createModuleChecker(module, visibleModules, pathConverter, _context).check(ModuleChecker.CheckType.LOAD_ALL); } // move generators outside language for (SNode generator : SLinkOperations.collect(SNodeOperations.ofConcept(parts, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, "jetbrains.mps.build.mps.structure.BuildMps_Language")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, 0x7fae147806433827L, "generator"))) { SNode lang = SNodeOperations.cast(SNodeOperations.getParent(generator), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, "jetbrains.mps.build.mps.structure.BuildMps_Language")); SLinkOperations.setTarget(generator, MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4c6db07d2e56a8b4L, 0xc0f2d501dbb734cL, "sourceLanguage"), lang); SNodeOperations.insertNextSiblingChild(lang, generator); SLinkOperations.setTarget(SLinkOperations.addNewChild(lang, MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x2c446791464290f8L, 0x6d1df6c2700aeb88L, "managedGenerators"), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6d1df6c2700aeb81L, "jetbrains.mps.build.mps.structure.BuildMps_GeneratorRef")), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x6d1df6c2700aeb81L, 0x6d1df6c2700aeb82L, "generator"), generator); } } } public static Object insertMacro_varValue_4267986820121148965(final TemplateVarContext _context) { return new MPSModulesClosure(_context.getNode(), new MPSModulesClosure.ModuleDependenciesOptions()).closure(); } public static Object insertMacro_varValue_609978641554543025(final TemplateVarContext _context) { SNode project = SNodeOperations.getNodeAncestor(_context.getNode(), MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, "jetbrains.mps.build.structure.BuildProject"), false, false); if (project == null) { _context.showErrorMessage(_context.getNode(), "no context project defined"); return null; } SNode parent = SNodeOperations.getParent(_context.getNode()); while (SNodeOperations.isInstanceOf(parent, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x668c6cfbafac4c78L, "jetbrains.mps.build.structure.BuildLayout_Folder"))) { parent = SNodeOperations.getParent(parent); } if (!(SNodeOperations.isInstanceOf(parent, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x668c6cfbafac7f9aL, "jetbrains.mps.build.structure.BuildLayout_Jar")))) { _context.showErrorMessage(_context.getNode(), "`module descriptor of mps module' should be in a jar"); return null; } VisibleArtifacts output = new VisibleArtifacts(project); output.collect(true); return MultiTuple.<VisibleArtifacts,SNode,SNode>from(output, SNodeOperations.cast(parent, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x668c6cfbafac7f9aL, "jetbrains.mps.build.structure.BuildLayout_Jar")), _context.getNode()); } public static Object insertMacro_varValue_8654221991637263463(final TemplateVarContext _context) { String moduleFile = BuildSourcePath__BehaviorDescriptor.getLocalPath_id4Kip2_918Y$.invoke(SLinkOperations.getTarget(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x177c2feaf3463711L, "module")), MetaAdapterFactory.getContainmentLink(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x4780308f5d333ebL, 0x4780308f5d47f25L, "path")), Context.defaultContext(_context)); moduleFile = moduleFile.replace("\\", "/"); return new RelativePathHelper(moduleFile.substring(0, moduleFile.lastIndexOf("/"))); } public static Object insertMacro_varValue_7918752904809369311(final TemplateVarContext _context) { return _context.getNode(); } public static Object insertMacro_varValue_7477562766051723482(final TemplateVarContext _context) { // need one to access template input from inside the nested loop return _context.getNode(); } public static Object insertMacro_varValue_6859736767834869981(final TemplateVarContext _context) { SNode project = SNodeOperations.getNodeAncestor(_context.getNode(), MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, "jetbrains.mps.build.structure.BuildProject"), true, false); if (project == null) { _context.showErrorMessage(_context.getNode(), "no context project defined"); return null; } DependenciesHelper helper = new DependenciesHelper(_context, project); SNode layoutNode = helper.getArtifact(((SNode) _context.getVariable("remotePath"))); SNode path = ((SNode) _context.getVariable("remotePath")); if (layoutNode == null) { StringBuilder suffix = new StringBuilder(); SNode current = SNodeOperations.as(path, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x65997a657729f6fbL, "jetbrains.mps.build.structure.BuildRelativePath")); if (current != null) { suffix.append('/').append(BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(path, null)); current = SNodeOperations.as(BuildSourcePath__BehaviorDescriptor.getParent_id7wpYgMyTXsR.invoke(current), MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x65997a657729f6fbL, "jetbrains.mps.build.structure.BuildRelativePath")); } SNode containingRoot = SNodeOperations.getContainingRoot(path); while (current != null) { SNode res = helper.getArtifact(new LocalSourcePathArtifact(containingRoot, BuildSourcePath__BehaviorDescriptor.getRelativePath_id4Kip2_918YF.invoke(current), true)); if (res != null) { return MultiTuple.<SNode,String>from(res, suffix.substring(1)); } suffix.insert(0, BuildSourcePath__BehaviorDescriptor.getLastSegment_id1bWeed$oUb5.invoke(current, null)).insert(0, '/'); current = SNodeOperations.as(BuildSourcePath__BehaviorDescriptor.getParent_id7wpYgMyTXsR.invoke(current), MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x65997a657729f6fbL, "jetbrains.mps.build.structure.BuildRelativePath")); } } if (layoutNode == null) { _context.showErrorMessage(_context.getNode(), "path " + BuildSourcePath__BehaviorDescriptor.getRelativePath_id4Kip2_918YF.invoke(((SNode) _context.getVariable("remotePath"))) + " was not found in the layout"); return MultiTuple.<Object,String>from(null, BuildSourcePath__BehaviorDescriptor.getRelativePath_id4Kip2_918YF.invoke(((SNode) _context.getVariable("remotePath")))); } // Since our layout nodes are pre-collected from transient models at a distinct step, we can't use them as reference targets for newly created dependencies, // and need to replace them with strings/classpath elements. Guess, the origin of the issue is that external jar dependency element may reference layout node, // which breaks the idea of BL being description of build parts, and dependency direction from BL to the part, not vice versa. // Even though this BL dependencies are often look reasonable and point to external layout nodes, I feel this part of build story is inconsistent, perhaps // 'java library' element shall get jars assigned with layout rather than reference layout node with extenal jar? OTOH, it's not clear what to do if I don't want // to include jar into layout, but would like to depend from it for compilation/build time? // // Here's small discrepancy, for a _SingleFolder node, getContentLocation is invoked inside switch_ExternalJar, while for _SingleFile I do getLocation // here right away. It's only to save extra DependenciesHelper initialization and to stay with existing two-element tuple. return MultiTuple.<SNode,String>from(layoutNode, helper.getLocation(layoutNode)); } public static Object insertMacro_varValue_3389822811994156014(final TemplateVarContext _context) { return _context.getNode(); } public static Object insertMacro_varValue_3340252814672973526(final TemplateVarContext _context) { if (((Boolean) _context.getVariable("var:mpsBootCore"))) { return "${build.tmp}/antTasks/ant/lib/ant-mps.jar"; } DependenciesHelper helper = new DependenciesHelper(_context, _context.getNode()); String artifact = "ant-mps"; SNode jmAntJar = helper.getArtifact(artifact); if ((jmAntJar != null)) { return BuildLayout_PathElement__BehaviorDescriptor.location_id6b4RkXS8sT2.invoke(jmAntJar, helper, artifact); } if (!(ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x4df58c6f18f84a22L, "macros"))).any(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x668c6cfbafadd002L, "jetbrains.mps.build.structure.BuildFolderMacro")) && "mps_home".equals(SPropertyOperations.getString(SNodeOperations.cast(it, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x668c6cfbafadd002L, "jetbrains.mps.build.structure.BuildFolderMacro")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))); } }))) { _context.showErrorMessage(null, "${mps_home} macro is required to create `generate' task"); } return null; } public static Object insertMacro_varValue_3340252814673340855(final TemplateVarContext _context) { DependenciesHelper helper = new DependenciesHelper(_context, _context.getNode()); String artifact = "jdom"; SNode jar = helper.getArtifact(artifact); if ((jar != null)) { return BuildLayout_PathElement__BehaviorDescriptor.location_id6b4RkXS8sT2.invoke(jar, helper, artifact); } if (!(ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x4df58c6f18f84a22L, "macros"))).any(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x668c6cfbafadd002L, "jetbrains.mps.build.structure.BuildFolderMacro")) && "mps_home".equals(SPropertyOperations.getString(SNodeOperations.cast(it, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x668c6cfbafadd002L, "jetbrains.mps.build.structure.BuildFolderMacro")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))); } }))) { _context.showErrorMessage(null, "${mps_home} macro is required to create `generate' task"); } return null; } public static Object insertMacro_varValue_3340252814673341014(final TemplateVarContext _context) { DependenciesHelper helper = new DependenciesHelper(_context, _context.getNode()); String artifact = "log4j"; SNode jar = helper.getArtifact(artifact); if ((jar != null)) { return BuildLayout_PathElement__BehaviorDescriptor.location_id6b4RkXS8sT2.invoke(jar, helper, artifact); } if (!(ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x4df58c6f18f84a22L, "macros"))).any(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x668c6cfbafadd002L, "jetbrains.mps.build.structure.BuildFolderMacro")) && "mps_home".equals(SPropertyOperations.getString(SNodeOperations.cast(it, MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x668c6cfbafadd002L, "jetbrains.mps.build.structure.BuildFolderMacro")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))); } }))) { _context.showErrorMessage(null, "${mps_home} macro is required to create `generate' task"); } return null; } public static Object insertMacro_varValue_288299486408963762(final TemplateVarContext _context) { return SPropertyOperations.getString(_context.getNode(), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")).equals("mpsBootstrapCore") && SModelOperations.getModelName(SNodeOperations.getModel(_context.getNode())).equals("jetbrains.mps.ide.build"); } public static Object insertMacro_varValue_4297162197626782015(final TemplateVarContext _context) { SNode firstGenOpts = Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x668c6cfbafacf6f2L, "parts")), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, "jetbrains.mps.build.mps.structure.BuildMps_GeneratorOptions"))).first(); if (firstGenOpts != null) { return SNodeOperations.cast(firstGenOpts, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, "jetbrains.mps.build.mps.structure.BuildMps_GeneratorOptions")); } else { SNode defaults = SConceptOperations.createNewNode(MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, "jetbrains.mps.build.mps.structure.BuildMps_GeneratorOptions")); SPropertyOperations.set(defaults, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x3ba296405b6f720eL, "parallel"), "" + (true)); // 8 is the value BaseGenerationWorker uses when parallel is true SPropertyOperations.set(defaults, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x3ba296405b6f7211L, "parallelThreads"), "" + (8)); SPropertyOperations.set(defaults, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x3ba296405b6f720cL, "strict"), "" + (true)); SPropertyOperations.set(defaults, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x3ba296405b7040e4L, "inplace"), "" + (false)); SPropertyOperations.set(defaults, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x36a924c4406d57f3L, "hideWarnings"), "" + (false)); SPropertyOperations.set(defaults, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x3ba296405b6f3b1bL, 0x5ab0fd79b0feb375L, "createStaticRefs"), "" + (true)); return defaults; } } public static Object insertMacro_varValue_3733986151371807578(final TemplateVarContext _context) { return Sequence.fromIterable(SNodeOperations.ofConcept(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x668c6cfbafacf6f2L, "parts")), MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0xcdff0e1a96739c2L, "jetbrains.mps.build.structure.BuildSource_JavaOptions"))).findFirst(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return isEmptyString(SPropertyOperations.getString(it, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0xcdff0e1a96739c2L, 0xcdff0e1a96739c3L, "optionsName"))); } }); } public static Object insertMacro_varValue_8301447434615581218(final TemplateVarContext _context) { final DependenciesHelper helper = new DependenciesHelper(_context, _context.getNode()); return Sequence.fromIterable(new RequiredPlugins(_context.getNode(), _context).getDependency()).select(new ISelector<SNode, String>() { public String select(SNode it) { SNode layoutNode = helper.getArtifact(it); if ((layoutNode == null)) { return null; } String val = BuildLayout_PathElement__BehaviorDescriptor.location_id6b4RkXS8sT2.invoke(layoutNode, helper, it); if (val == null) { return null; } return val; } }).where(new IWhereFilter<String>() { public boolean accept(String it) { return (it != null && it.length() > 0); } }).sort(new ISelector<String, String>() { public String select(String it) { return it; } }, true).toGenericArray(String.class); } public static Object insertMacro_varValue_5970181360960164993(final TemplateVarContext _context) { return (MPSModulesPartitioner.Chunk) _context.getNode().getUserObject("chunk"); } public static Object insertMacro_varValue_3239569521490197769(final TemplateVarContext _context) { final DependenciesHelper helper = new DependenciesHelper(_context, _context.getNode()); return Sequence.fromIterable(new RequiredPlugins(_context.getNode(), _context).getDependency()).select(new ISelector<SNode, String>() { public String select(SNode it) { SNode layoutNode = helper.getArtifact(it); if ((layoutNode == null)) { return null; } String val = BuildLayout_PathElement__BehaviorDescriptor.location_id6b4RkXS8sT2.invoke(layoutNode, helper, it); if (val == null) { return null; } return val; } }).where(new IWhereFilter<String>() { public boolean accept(String it) { return (it != null && it.length() > 0); } }).sort(new ISelector<String, String>() { public String select(String it) { return it; } }, true).toGenericArray(String.class); } public static Object insertMacro_varValue_8986357566212610610(final TemplateVarContext _context) { VisibleModules visibleModules = new VisibleModules(_context.getNode()); visibleModules.collect(); SNode gentest = visibleModules.resolve("jetbrains.mps.tool.gentest", "3ba7b7cf-6a5a-4981-ba0b-3302e59ffef7"); MPSModulesClosure closure = new MPSModulesClosure(SNodeOperations.cast(gentest, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, "jetbrains.mps.build.mps.structure.BuildMps_Module")), new MPSModulesClosure.ModuleDependenciesOptions()); Iterable<SNode> allModules = Sequence.fromIterable(closure.runtimeClosure().getAllModules()).union(Sequence.fromIterable(((MPSModulesPartitioner) _context.getVariable("var:closure")).getExternal())).union(Sequence.fromIterable(Sequence.<SNode>singleton(gentest))); return ModuleFinder.findModules(allModules, _context, _context.getNode()); } public static Object insertMacro_varValue_6354776497085480748(final TemplateVarContext _context) { List<Tuples._2<SNode, String>> dependencies = new ProjectDependency(_context, _context.getNode()).collectDependencies().getDependencies(); return ListSequence.fromList(dependencies).select(new ISelector<Tuples._2<SNode, String>, SNode>() { public SNode select(Tuples._2<SNode, String> it) { return createGeneratorInternal_ProjectDependency_x583g4_a0a0a0a1a292(it._1(), it._0()); } }).toListSequence(); } public static Object insertMacro_varValue_5970181360963001549(final TemplateVarContext _context) { MPSModulesPartitioner partitioner = new MPSModulesPartitioner(_context.getNode()); partitioner.buildChunks(); partitioner.buildExternalDependencies(); if (ListSequence.fromList(partitioner.getChunks()).any(new IWhereFilter<MPSModulesPartitioner.Chunk>() { public boolean accept(MPSModulesPartitioner.Chunk it) { return it.isBootstrap(); } }) && !(ListSequence.fromList(SLinkOperations.getChildren(_context.getNode(), MetaAdapterFactory.getContainmentLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4df58c6f18f84a13L, 0x31292e1a60db57afL, "aspects"))).any(new IWhereFilter<SNode>() { public boolean accept(SNode it) { return SNodeOperations.isInstanceOf(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect")) && SPropertyOperations.getBoolean(SNodeOperations.cast(it, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, "jetbrains.mps.build.mps.structure.BuildMpsAspect")), MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x5a408fb8c80220a9L, 0x5a408fb8c80270bcL, "bootstrap")); } }))) { Iterable<SNode> samples = SNodeOperations.ofConcept(ListSequence.fromList(partitioner.getChunks()).where(new IWhereFilter<MPSModulesPartitioner.Chunk>() { public boolean accept(MPSModulesPartitioner.Chunk it) { return it.isBootstrap(); } }).translate(new ITranslator2<MPSModulesPartitioner.Chunk, SNode>() { public Iterable<SNode> translate(MPSModulesPartitioner.Chunk it) { return it.getConflicting(); } }), MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, "jetbrains.mps.build.mps.structure.BuildMps_Module")); _context.showErrorMessage(null, "cannot create `generate' task, there is a dependency cycle between a language and modules using it; add `mps settings' aspect with bootstrap = true to turn off the check"); for (SNode c : Sequence.fromIterable(samples).select(new ISelector<SNode, SNode>() { public SNode select(SNode it) { return DependenciesHelper.getOriginalNode(it, _context); } })) { _context.showErrorMessage(c, "(bootstrap cycle) " + SPropertyOperations.getString(SNodeOperations.as(c, MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x48e82d508331930cL, "jetbrains.mps.build.mps.structure.BuildMps_Module")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) + "; right click on a module -> Analyze -> Analyze Module Dependencies"); } } return partitioner; } private final Map<String, ReductionRuleCondition> rrcMethods = new HashMap<String, ReductionRuleCondition>(); { int i = 0; rrcMethods.put("1692280246134778926", new QueriesGenerated.RRC(i++)); rrcMethods.put("7753544965996882283", 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_2591537044436204156(ctx); case 1: return QueriesGenerated.baseMappingRule_Condition_7753544965996882285(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, QueriesGenerated.WRQ> wrcnMethods = new HashMap<String, QueriesGenerated.WRQ>(); { int i = 0; wrcnMethods.put("2413798559262849242", new QueriesGenerated.WRQ(i++)); } @Override @NotNull public WeaveRuleCondition getWeaveRuleCondition(@NotNull QueryKey identity) { final String id = identity.getTemplateNode().getNodeId().toString(); if (!(wrcnMethods.containsKey(id))) { return super.getWeaveRuleCondition(identity); } return wrcnMethods.get(id); } @Override @NotNull public WeaveRuleQuery getWeaveRuleQuery(@NotNull QueryKey identity) { final String id = identity.getTemplateNode().getNodeId().toString(); if (!(wrcnMethods.containsKey(id))) { return super.getWeaveRuleQuery(identity); } return wrcnMethods.get(id); } @NotNull @Override public WeaveAnchorQuery getWeaveAnchorQuery(@NotNull QueryKey identity) { final String id = identity.getTemplateNode().getNodeId().toString(); if (!(wrcnMethods.containsKey(id))) { return super.getWeaveAnchorQuery(identity); } return wrcnMethods.get(id); } private static class WRQ implements WeaveRuleQuery, WeaveRuleCondition, WeaveAnchorQuery { private final int methodKey; public WRQ(int methodKey) { this.methodKey = methodKey; } @Override public boolean check(@NotNull WeavingMappingRuleContext ctx) throws GenerationFailureException { switch (methodKey) { case 0: return QueriesGenerated.baseMappingRule_Condition_2413798559262850299(ctx); default: throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no condition method for rule %s (key: #%d)", ctx.getTemplateReference(), methodKey)); } } @Override public SNode contextNode(WeavingMappingRuleContext ctx) throws GenerationFailureException { switch (methodKey) { case 0: return QueriesGenerated.weaving_MappingRule_ContextNodeQuery_2413798559262849243(ctx); default: throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no context node query method for weaving rule %s (key: #%d)", ctx.getTemplateReference(), methodKey)); } } @Nullable @Override public SNode anchorNode(WeavingAnchorContext ctx) throws GenerationFailureException { switch (methodKey) { case 0: return null; default: throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no anchor query method for rule %s (key: #%d)", ctx.getTemplateReference(), methodKey)); } } } private final Map<String, ScriptCodeBlock> mscbMethods = new HashMap<String, ScriptCodeBlock>(); { int i = 0; mscbMethods.put("3189788309732145594", new QueriesGenerated.SCB(i++)); } @Override @NotNull public ScriptCodeBlock getScriptCodeBlock(@NotNull QueryKey identity) { final String id = identity.getTemplateNode().getNodeId().toString(); if (!(mscbMethods.containsKey(id))) { return super.getScriptCodeBlock(identity); } return mscbMethods.get(id); } private static class SCB implements ScriptCodeBlock { private final int methodKey; public SCB(int methodKey) { this.methodKey = methodKey; } @Override public void invoke(MappingScriptContext ctx) throws GenerationFailureException { switch (methodKey) { case 0: QueriesGenerated.mappingScript_CodeBlock_3189788309732145595(ctx); return; default: throw new GenerationFailureException(String.format("There's no code block with method index %d ", methodKey)); } } } private final Map<String, SourceNodeQuery> snqMethods = new HashMap<String, SourceNodeQuery>(); { int i = 0; snqMethods.put("2303926226081111358", new QueriesGenerated.SNQ(i++)); snqMethods.put("1065091787225169766", new QueriesGenerated.SNQ(i++)); snqMethods.put("8252715012761560260", new QueriesGenerated.SNQ(i++)); snqMethods.put("6859736767834858755", new QueriesGenerated.SNQ(i++)); snqMethods.put("8369506495128850710", new QueriesGenerated.SNQ(i++)); snqMethods.put("8654221991637113346", new QueriesGenerated.SNQ(i++)); snqMethods.put("8654221991637263395", new QueriesGenerated.SNQ(i++)); snqMethods.put("230419292059351208", new QueriesGenerated.SNQ(i++)); snqMethods.put("230419292059619665", new QueriesGenerated.SNQ(i++)); snqMethods.put("2540145662854694674", new QueriesGenerated.SNQ(i++)); snqMethods.put("4912951749633709512", new QueriesGenerated.SNQ(i++)); snqMethods.put("6592112598314985660", new QueriesGenerated.SNQ(i++)); snqMethods.put("7832771629085272499", new QueriesGenerated.SNQ(i++)); snqMethods.put("7753544965996885758", new QueriesGenerated.SNQ(i++)); snqMethods.put("7753544965996885821", new QueriesGenerated.SNQ(i++)); snqMethods.put("7753544965996885835", new QueriesGenerated.SNQ(i++)); snqMethods.put("781140262679960784", new QueriesGenerated.SNQ(i++)); snqMethods.put("6845119683731096015", new QueriesGenerated.SNQ(i++)); snqMethods.put("6845119683731099304", new QueriesGenerated.SNQ(i++)); snqMethods.put("772379520212560178", new QueriesGenerated.SNQ(i++)); snqMethods.put("6099622527106052274", new QueriesGenerated.SNQ(i++)); snqMethods.put("1462305029084462284", new QueriesGenerated.SNQ(i++)); snqMethods.put("1462305029084462298", new QueriesGenerated.SNQ(i++)); snqMethods.put("2339934328870356487", new QueriesGenerated.SNQ(i++)); snqMethods.put("3389822811994148446", 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_2303926226081111358(ctx); case 1: return QueriesGenerated.sourceNodeQuery_1065091787225169766(ctx); case 2: return QueriesGenerated.sourceNodeQuery_8252715012761560260(ctx); case 3: return QueriesGenerated.sourceNodeQuery_6859736767834858755(ctx); case 4: return QueriesGenerated.sourceNodeQuery_8369506495128850710(ctx); case 5: return QueriesGenerated.sourceNodeQuery_8654221991637113346(ctx); case 6: return QueriesGenerated.sourceNodeQuery_8654221991637263395(ctx); case 7: return QueriesGenerated.sourceNodeQuery_230419292059351208(ctx); case 8: return QueriesGenerated.sourceNodeQuery_230419292059619665(ctx); case 9: return QueriesGenerated.sourceNodeQuery_2540145662854694674(ctx); case 10: return QueriesGenerated.sourceNodeQuery_4912951749633709512(ctx); case 11: return QueriesGenerated.sourceNodeQuery_6592112598314985660(ctx); case 12: return QueriesGenerated.sourceNodeQuery_7832771629085272499(ctx); case 13: return QueriesGenerated.sourceNodeQuery_7753544965996885758(ctx); case 14: return QueriesGenerated.sourceNodeQuery_7753544965996885821(ctx); case 15: return QueriesGenerated.sourceNodeQuery_7753544965996885835(ctx); case 16: return QueriesGenerated.sourceNodeQuery_781140262679960784(ctx); case 17: return QueriesGenerated.sourceNodeQuery_6845119683731096015(ctx); case 18: return QueriesGenerated.sourceNodeQuery_6845119683731099304(ctx); case 19: return QueriesGenerated.sourceNodeQuery_772379520212560178(ctx); case 20: return QueriesGenerated.sourceNodeQuery_6099622527106052274(ctx); case 21: return QueriesGenerated.sourceNodeQuery_1462305029084462284(ctx); case 22: return QueriesGenerated.sourceNodeQuery_1462305029084462298(ctx); case 23: return QueriesGenerated.sourceNodeQuery_2339934328870356487(ctx); case 24: return QueriesGenerated.sourceNodeQuery_3389822811994148446(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("2303926226081111354", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("2389279258789752324", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("4267986820121149056", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("7259033139236497711", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("3717132724153192091", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("6859736767834858211", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("202934866058978115", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("1500819558096263527", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("8315586463637239065", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("4643216374596368654", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("4743026300739026814", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("8488591998065731739", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("8654221991637263183", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("4356762679305730694", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("230419292059623319", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("3335207478149112020", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("7862711839426437495", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("2540145662854694642", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("3335207478149152717", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("7753763219109676125", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("7753763219109750713", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("7753763219109811971", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("3389822811994255065", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("6673387549253815203", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("6845119683729431098", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("6592112598314985296", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("1359186315027134099", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("978600701690054686", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("5970181360960745073", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("8845345751178284778", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("8845345751178284914", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("5002485985636840318", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("3239569521490197891", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("8986357566212684075", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("3239569521490197949", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("5002485985637417315", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("5970181360963002103", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("6354776497113862138", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("3389822811994291055", new QueriesGenerated.SNsQ(i++)); snsqMethods.put("3389822811994291141", 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_2303926226081111354(ctx)); case 1: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2389279258789752324(ctx)); case 2: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_4267986820121149056(ctx)); case 3: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_7259033139236497711(ctx)); case 4: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3717132724153192091(ctx)); case 5: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6859736767834858211(ctx)); case 6: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_202934866058978115(ctx)); case 7: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_1500819558096263527(ctx)); case 8: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_8315586463637239065(ctx)); case 9: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_4643216374596368654(ctx)); case 10: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_4743026300739026814(ctx)); case 11: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_8488591998065731739(ctx)); case 12: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_8654221991637263183(ctx)); case 13: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_4356762679305730694(ctx)); case 14: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_230419292059623319(ctx)); case 15: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3335207478149112020(ctx)); case 16: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_7862711839426437495(ctx)); case 17: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_2540145662854694642(ctx)); case 18: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3335207478149152717(ctx)); case 19: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_7753763219109676125(ctx)); case 20: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_7753763219109750713(ctx)); case 21: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_7753763219109811971(ctx)); case 22: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3389822811994255065(ctx)); case 23: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6673387549253815203(ctx)); case 24: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6845119683729431098(ctx)); case 25: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6592112598314985296(ctx)); case 26: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_1359186315027134099(ctx)); case 27: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_978600701690054686(ctx)); case 28: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_5970181360960745073(ctx)); case 29: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_8845345751178284778(ctx)); case 30: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_8845345751178284914(ctx)); case 31: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_5002485985636840318(ctx)); case 32: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3239569521490197891(ctx)); case 33: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_8986357566212684075(ctx)); case 34: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3239569521490197949(ctx)); case 35: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_5002485985637417315(ctx)); case 36: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_5970181360963002103(ctx)); case 37: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_6354776497113862138(ctx)); case 38: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3389822811994291055(ctx)); case 39: return IterableUtil.asCollection(QueriesGenerated.sourceNodesQuery_3389822811994291141(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("2389279258789759929", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x263ae7d4319546c6L, 0x263ae7d4319546c7L, "relativePath"), "path")); pvqMethods.put("1500819558096225937", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"), "mps.module")); pvqMethods.put("7259033139236585057", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x263ae7d4319896a7L, 0x64bd442e1cfb0eaaL, "reexport"), "true")); pvqMethods.put("2105528055260559334", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x440d7ea3b68b7d03L, 0x440d7ea3b68c4d56L, "text"), "name")); pvqMethods.put("4643216374596368556", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "id")); pvqMethods.put("4643216374596368424", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "language")); pvqMethods.put("4643216374596368502", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "00000000-0000-0000-0000-000000000000")); pvqMethods.put("4643216374596368656", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "0000-0000(org.test.module1)")); pvqMethods.put("4743026300739052425", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "file.jar")); pvqMethods.put("8488591998065733682", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), ".")); pvqMethods.put("4743026300739110531", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "module-src.jar")); pvqMethods.put("4743026300739110546", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "module.msd")); pvqMethods.put("7918752904809327283", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x127671bd5d8bb460L, 0x6de50fcfc2febc8aL, "stripImplementation"), null)); pvqMethods.put("8654221991637263444", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x440d7ea3b68b7d03L, 0x440d7ea3b68c4d56L, "text"), "models")); pvqMethods.put("7477562766051464979", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path"), "module.mpl")); pvqMethods.put("7477562766051598606", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path"), "module-src.jar")); pvqMethods.put("2540145662854694139", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x440d7ea3b68b7d03L, 0x440d7ea3b68c4d56L, "text"), "module.jar")); pvqMethods.put("7477562766051677943", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path"), "language-src.jar")); pvqMethods.put("7477562766051765206", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path"), "language.mpl")); pvqMethods.put("9200313594511245387", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x440d7ea3b68b7d03L, 0x440d7ea3b68c4d56L, "text"), "module-generator.jar")); pvqMethods.put("7918752904810572709", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x6de50fcfc334192fL, "stripImplementation"), null)); pvqMethods.put("2540145662854694190", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x440d7ea3b68b7d03L, 0x440d7ea3b68c4d56L, "text"), "module-src.jar")); pvqMethods.put("4821808014881207504", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "module.jar")); pvqMethods.put("7477562766051792014", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path"), "module/solution.msd")); pvqMethods.put("7753763219109706788", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x177c2feaf3463710L, 0x6de50fcfc334192fL, "stripImplementation"), null)); pvqMethods.put("1238980147630114296", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x440d7ea3b68b7d03L, 0x440d7ea3b68c4d56L, "text"), "module.jar")); pvqMethods.put("7753544965996882379", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "MPS")); pvqMethods.put("7753544965996883333", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "1")); pvqMethods.put("7753544965996885262", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "0")); pvqMethods.put("8214652431340021966", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "0")); pvqMethods.put("7753544965996885278", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "false")); pvqMethods.put("7753544965996885368", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "default")); pvqMethods.put("781140262678093901", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "JetBrains")); pvqMethods.put("781140262678105143", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://jetbrains.com")); pvqMethods.put("7753544965996885635", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "111")); pvqMethods.put("1462305029084473469", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "${DSTAMP}")); pvqMethods.put("1462305029084462105", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "/splash.png")); pvqMethods.put("1462305029084462140", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "002233")); pvqMethods.put("6845119683729383510", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "FDA916")); pvqMethods.put("7962467864632500980", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "0")); pvqMethods.put("6845119683729386511", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "230")); pvqMethods.put("7962467864633127656", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "1")); pvqMethods.put("1462305029084462062", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "/about.png")); pvqMethods.put("1462305029084462313", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "32.png")); pvqMethods.put("1462305029084462337", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "16.png")); pvqMethods.put("1462305029084462360", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "32opaque.png")); pvqMethods.put("6845119683730306981", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "13.png")); pvqMethods.put("781140262677966725", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "128.png")); pvqMethods.put("6845119683729395352", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "MPS.ico")); pvqMethods.put("1462305029084462430", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "MPS")); pvqMethods.put("1462305029084462452", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "JetBrains MPS")); pvqMethods.put("772379520212879620", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "/logo.png")); pvqMethods.put("6099622527106030560", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "/bg.png")); pvqMethods.put("781140262678149977", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://plugins")); pvqMethods.put("1462305029084461923", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://check")); pvqMethods.put("1462305029084461948", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://update")); pvqMethods.put("1462305029084452899", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "help.jar")); pvqMethods.put("1462305029084452877", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "MPS")); pvqMethods.put("1462305029084421196", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://www.jetbrains.com/help/")); pvqMethods.put("5894421362117319929", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://documentation")); pvqMethods.put("5894421362117650628", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "https://support")); pvqMethods.put("8877724874822463400", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://forum.jetbrains.com/forum/Meta-Programming-System")); pvqMethods.put("8877724874822463477", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54b8df3L, 0x5c842a42c54b8df6L, "attrName"), "url")); pvqMethods.put("781140262678199734", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://whatsnew")); pvqMethods.put("5894421362118006947", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://win_keymap")); pvqMethods.put("5894421362118007025", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://mac_keymap")); pvqMethods.put("5894421362118348066", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://")); pvqMethods.put("781140262678258087", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://jetbrains.com/idea/statistics/stat-assistant.xml")); pvqMethods.put("781140262678263355", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://jetbrains.com/idea/statistics/index.jsp")); pvqMethods.put("6592112598314984956", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x16838b3fce9aa513L, 0x16838b3fce9aaa68L, "value"), "jetbrains.mps.plugin")); pvqMethods.put("6592112598314985022", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x16838b3fce9aa513L, 0x16838b3fce9aaa68L, "value"), "Plugin")); pvqMethods.put("2172791612911012485", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x16838b3fce9aa513L, 0x16838b3fce9aaa68L, "value"), "Description")); pvqMethods.put("6592112598314985143", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x16838b3fce9aa513L, 0x16838b3fce9aaa68L, "value"), "1.0.0")); pvqMethods.put("7832771629085133940", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "http://www.jetbrains.com/mps/")); pvqMethods.put("7832771629085134956", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "/MPS_16.png")); pvqMethods.put("7832771629085133853", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x16838b3fce9aa513L, 0x16838b3fce9aaa68L, "value"), "JetBrains")); pvqMethods.put("6592112598314985446", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x16838b3fce9aa513L, 0x16838b3fce9aaa68L, "value"), "jetbrains.mps.core")); pvqMethods.put("2436117033632111129", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "${mps_home}/lib/ant/lib/ant-mps.jar")); pvqMethods.put("2436117033632111186", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "${mps_home}/lib/jdom.jar")); pvqMethods.put("2436117033632111195", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "${mps_home}/lib/log4j.jar")); pvqMethods.put("4297162197629738842", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "true")); pvqMethods.put("978600701690073082", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "plugins.path")); pvqMethods.put("5970181360960745172", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "aaa")); pvqMethods.put("4297162197629596071", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "true")); pvqMethods.put("4297162197630908239", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "4")); pvqMethods.put("4297162197629869373", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "false")); pvqMethods.put("3938719774425518971", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "true")); pvqMethods.put("6535001758417114441", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "true")); pvqMethods.put("3733986151372087665", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "1.6")); pvqMethods.put("8845345751178380247", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "aaa.msd")); pvqMethods.put("9076354678688345521", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "-Xmx512m")); pvqMethods.put("353547257300549686", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "-XX:MaxPermSize=64m")); pvqMethods.put("5002485985636846574", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "name")); pvqMethods.put("5002485985636839430", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "${propertyName}")); pvqMethods.put("3239569521490197761", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "plugins.path")); pvqMethods.put("8986357566212561514", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "lib")); pvqMethods.put("1374711517443210408", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "moduleFile.msd")); pvqMethods.put("8702237507672319033", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "-Xmx512m")); pvqMethods.put("353547257301863278", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "-XX:MaxPermSize=64m")); pvqMethods.put("5002485985637417294", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "name")); pvqMethods.put("5002485985637417303", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "${propertyName}")); pvqMethods.put("7795397664372773538", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "excludePattern")); pvqMethods.put("5970181360963002105", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "module/source_gen")); pvqMethods.put("6354776497085480729", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "build.xml")); pvqMethods.put("3389822811994148423", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x6de50fcfc3523742L, "stripImplementation"), null)); pvqMethods.put("3389822811994291044", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x440d7ea3b68b7d03L, 0x440d7ea3b68c4d56L, "text"), "groupName")); pvqMethods.put("3389822811994291117", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0x11918e0f209b83e7L, 0x6de50fcfc3523742L, "stripImplementation"), null)); pvqMethods.put("4912951749633439328", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "aaa.jar")); pvqMethods.put("4912951749633463342", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "dir")); pvqMethods.put("4912951749633463930", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x479c7a8c02f943b5L, 0x9139d910cb22f298L, 0x5c842a42c54cfd1fL, 0x5c842a42c54cfd20L, "text"), "aaa.jar")); pvqMethods.put("4912951749633460798", new QueriesGenerated.PVQ(i++, MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x4c1fa58d992addeL, 0x4c1fa58d9933cacL, "suffix"), "aaa.jar")); } @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_2389279258789759930(ctx); case 1: return QueriesGenerated.propertyMacro_GetPropertyValue_1500819558096225938(ctx); case 2: return QueriesGenerated.propertyMacro_GetPropertyValue_7259033139236585058(ctx); case 3: return QueriesGenerated.propertyMacro_GetPropertyValue_2105528055260559335(ctx); case 4: return QueriesGenerated.propertyMacro_GetPropertyValue_4643216374596368557(ctx); case 5: return QueriesGenerated.propertyMacro_GetPropertyValue_4643216374596368425(ctx); case 6: return QueriesGenerated.propertyMacro_GetPropertyValue_4643216374596368503(ctx); case 7: return QueriesGenerated.propertyMacro_GetPropertyValue_4643216374596368657(ctx); case 8: return QueriesGenerated.propertyMacro_GetPropertyValue_4743026300739052426(ctx); case 9: return QueriesGenerated.propertyMacro_GetPropertyValue_8488591998065733683(ctx); case 10: return QueriesGenerated.propertyMacro_GetPropertyValue_4743026300739110532(ctx); case 11: return QueriesGenerated.propertyMacro_GetPropertyValue_4743026300739110547(ctx); case 12: return QueriesGenerated.propertyMacro_GetPropertyValue_7918752904809327284(ctx); case 13: return QueriesGenerated.propertyMacro_GetPropertyValue_8654221991637263445(ctx); case 14: return QueriesGenerated.propertyMacro_GetPropertyValue_7477562766051464980(ctx); case 15: return QueriesGenerated.propertyMacro_GetPropertyValue_7477562766051598607(ctx); case 16: return QueriesGenerated.propertyMacro_GetPropertyValue_2540145662854694140(ctx); case 17: return QueriesGenerated.propertyMacro_GetPropertyValue_7477562766051677944(ctx); case 18: return QueriesGenerated.propertyMacro_GetPropertyValue_7477562766051765207(ctx); case 19: return QueriesGenerated.propertyMacro_GetPropertyValue_9200313594511245388(ctx); case 20: return QueriesGenerated.propertyMacro_GetPropertyValue_7918752904810572710(ctx); case 21: return QueriesGenerated.propertyMacro_GetPropertyValue_2540145662854694191(ctx); case 22: return QueriesGenerated.propertyMacro_GetPropertyValue_4821808014881207505(ctx); case 23: return QueriesGenerated.propertyMacro_GetPropertyValue_7477562766051792015(ctx); case 24: return QueriesGenerated.propertyMacro_GetPropertyValue_7753763219109706789(ctx); case 25: return QueriesGenerated.propertyMacro_GetPropertyValue_1238980147630114297(ctx); case 26: return QueriesGenerated.propertyMacro_GetPropertyValue_7753544965996882380(ctx); case 27: return QueriesGenerated.propertyMacro_GetPropertyValue_7753544965996883334(ctx); case 28: return QueriesGenerated.propertyMacro_GetPropertyValue_7753544965996885263(ctx); case 29: return QueriesGenerated.propertyMacro_GetPropertyValue_8214652431340021967(ctx); case 30: return QueriesGenerated.propertyMacro_GetPropertyValue_7753544965996885279(ctx); case 31: return QueriesGenerated.propertyMacro_GetPropertyValue_7753544965996885369(ctx); case 32: return QueriesGenerated.propertyMacro_GetPropertyValue_781140262678093902(ctx); case 33: return QueriesGenerated.propertyMacro_GetPropertyValue_781140262678105144(ctx); case 34: return QueriesGenerated.propertyMacro_GetPropertyValue_7753544965996885636(ctx); case 35: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084473470(ctx); case 36: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084462106(ctx); case 37: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084462141(ctx); case 38: return QueriesGenerated.propertyMacro_GetPropertyValue_6845119683729383511(ctx); case 39: return QueriesGenerated.propertyMacro_GetPropertyValue_7962467864632500981(ctx); case 40: return QueriesGenerated.propertyMacro_GetPropertyValue_6845119683729386512(ctx); case 41: return QueriesGenerated.propertyMacro_GetPropertyValue_7962467864633127657(ctx); case 42: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084462063(ctx); case 43: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084462314(ctx); case 44: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084462338(ctx); case 45: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084462361(ctx); case 46: return QueriesGenerated.propertyMacro_GetPropertyValue_6845119683730306982(ctx); case 47: return QueriesGenerated.propertyMacro_GetPropertyValue_781140262677966726(ctx); case 48: return QueriesGenerated.propertyMacro_GetPropertyValue_6845119683729395353(ctx); case 49: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084462431(ctx); case 50: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084462453(ctx); case 51: return QueriesGenerated.propertyMacro_GetPropertyValue_772379520212879621(ctx); case 52: return QueriesGenerated.propertyMacro_GetPropertyValue_6099622527106030561(ctx); case 53: return QueriesGenerated.propertyMacro_GetPropertyValue_781140262678149978(ctx); case 54: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084461924(ctx); case 55: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084461949(ctx); case 56: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084452900(ctx); case 57: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084452878(ctx); case 58: return QueriesGenerated.propertyMacro_GetPropertyValue_1462305029084421197(ctx); case 59: return QueriesGenerated.propertyMacro_GetPropertyValue_5894421362117319930(ctx); case 60: return QueriesGenerated.propertyMacro_GetPropertyValue_5894421362117650629(ctx); case 61: return QueriesGenerated.propertyMacro_GetPropertyValue_8877724874822463401(ctx); case 62: return QueriesGenerated.propertyMacro_GetPropertyValue_8877724874822463478(ctx); case 63: return QueriesGenerated.propertyMacro_GetPropertyValue_781140262678199735(ctx); case 64: return QueriesGenerated.propertyMacro_GetPropertyValue_5894421362118006948(ctx); case 65: return QueriesGenerated.propertyMacro_GetPropertyValue_5894421362118007026(ctx); case 66: return QueriesGenerated.propertyMacro_GetPropertyValue_5894421362118348067(ctx); case 67: return QueriesGenerated.propertyMacro_GetPropertyValue_781140262678258088(ctx); case 68: return QueriesGenerated.propertyMacro_GetPropertyValue_781140262678263356(ctx); case 69: return QueriesGenerated.propertyMacro_GetPropertyValue_6592112598314984957(ctx); case 70: return QueriesGenerated.propertyMacro_GetPropertyValue_6592112598314985023(ctx); case 71: return QueriesGenerated.propertyMacro_GetPropertyValue_2172791612911012486(ctx); case 72: return QueriesGenerated.propertyMacro_GetPropertyValue_6592112598314985144(ctx); case 73: return QueriesGenerated.propertyMacro_GetPropertyValue_7832771629085133941(ctx); case 74: return QueriesGenerated.propertyMacro_GetPropertyValue_7832771629085134957(ctx); case 75: return QueriesGenerated.propertyMacro_GetPropertyValue_7832771629085133854(ctx); case 76: return QueriesGenerated.propertyMacro_GetPropertyValue_6592112598314985447(ctx); case 77: return QueriesGenerated.propertyMacro_GetPropertyValue_2436117033632111130(ctx); case 78: return QueriesGenerated.propertyMacro_GetPropertyValue_2436117033632111187(ctx); case 79: return QueriesGenerated.propertyMacro_GetPropertyValue_2436117033632111196(ctx); case 80: return QueriesGenerated.propertyMacro_GetPropertyValue_4297162197629738843(ctx); case 81: return QueriesGenerated.propertyMacro_GetPropertyValue_978600701690073083(ctx); case 82: return QueriesGenerated.propertyMacro_GetPropertyValue_5970181360960745173(ctx); case 83: return QueriesGenerated.propertyMacro_GetPropertyValue_4297162197629596072(ctx); case 84: return QueriesGenerated.propertyMacro_GetPropertyValue_4297162197630908240(ctx); case 85: return QueriesGenerated.propertyMacro_GetPropertyValue_4297162197629869374(ctx); case 86: return QueriesGenerated.propertyMacro_GetPropertyValue_3938719774425518972(ctx); case 87: return QueriesGenerated.propertyMacro_GetPropertyValue_6535001758417114442(ctx); case 88: return QueriesGenerated.propertyMacro_GetPropertyValue_3733986151372087666(ctx); case 89: return QueriesGenerated.propertyMacro_GetPropertyValue_8845345751178380248(ctx); case 90: return QueriesGenerated.propertyMacro_GetPropertyValue_9076354678688345524(ctx); case 91: return QueriesGenerated.propertyMacro_GetPropertyValue_353547257300549687(ctx); case 92: return QueriesGenerated.propertyMacro_GetPropertyValue_5002485985636846575(ctx); case 93: return QueriesGenerated.propertyMacro_GetPropertyValue_5002485985636839431(ctx); case 94: return QueriesGenerated.propertyMacro_GetPropertyValue_3239569521490197762(ctx); case 95: return QueriesGenerated.propertyMacro_GetPropertyValue_8986357566212561515(ctx); case 96: return QueriesGenerated.propertyMacro_GetPropertyValue_1374711517443210409(ctx); case 97: return QueriesGenerated.propertyMacro_GetPropertyValue_8702237507672319034(ctx); case 98: return QueriesGenerated.propertyMacro_GetPropertyValue_353547257301863279(ctx); case 99: return QueriesGenerated.propertyMacro_GetPropertyValue_5002485985637417295(ctx); case 100: return QueriesGenerated.propertyMacro_GetPropertyValue_5002485985637417304(ctx); case 101: return QueriesGenerated.propertyMacro_GetPropertyValue_7795397664372773539(ctx); case 102: return QueriesGenerated.propertyMacro_GetPropertyValue_5970181360963002106(ctx); case 103: return QueriesGenerated.propertyMacro_GetPropertyValue_6354776497085480730(ctx); case 104: return QueriesGenerated.propertyMacro_GetPropertyValue_3389822811994148424(ctx); case 105: return QueriesGenerated.propertyMacro_GetPropertyValue_3389822811994291045(ctx); case 106: return QueriesGenerated.propertyMacro_GetPropertyValue_3389822811994291118(ctx); case 107: return QueriesGenerated.propertyMacro_GetPropertyValue_4912951749633439329(ctx); case 108: return QueriesGenerated.propertyMacro_GetPropertyValue_4912951749633463343(ctx); case 109: return QueriesGenerated.propertyMacro_GetPropertyValue_4912951749633463931(ctx); case 110: return QueriesGenerated.propertyMacro_GetPropertyValue_4912951749633460799(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("8488591998065755518", new QueriesGenerated.IfMC(i++)); imcMethods.put("7477562766052505826", new QueriesGenerated.IfMC(i++)); imcMethods.put("7477562766052512687", new QueriesGenerated.IfMC(i++)); imcMethods.put("4743026300739110562", new QueriesGenerated.IfMC(i++)); imcMethods.put("8369506495128850762", new QueriesGenerated.IfMC(i++)); imcMethods.put("8654221991637237393", new QueriesGenerated.IfMC(i++)); imcMethods.put("8654221991637263557", new QueriesGenerated.IfMC(i++)); imcMethods.put("2794582399917924014", new QueriesGenerated.IfMC(i++)); imcMethods.put("2540145662854694254", new QueriesGenerated.IfMC(i++)); imcMethods.put("230419292059619676", new QueriesGenerated.IfMC(i++)); imcMethods.put("3335207478149118950", new QueriesGenerated.IfMC(i++)); imcMethods.put("3335207478149152701", new QueriesGenerated.IfMC(i++)); imcMethods.put("2540145662854694312", new QueriesGenerated.IfMC(i++)); imcMethods.put("8252715012761547078", new QueriesGenerated.IfMC(i++)); imcMethods.put("7753763219109750697", new QueriesGenerated.IfMC(i++)); imcMethods.put("7753763219109811955", new QueriesGenerated.IfMC(i++)); imcMethods.put("7832771629085272619", new QueriesGenerated.IfMC(i++)); imcMethods.put("8214652431340024700", new QueriesGenerated.IfMC(i++)); imcMethods.put("7753544965996885485", new QueriesGenerated.IfMC(i++)); imcMethods.put("781140262678082419", new QueriesGenerated.IfMC(i++)); imcMethods.put("1462305029084462172", new QueriesGenerated.IfMC(i++)); imcMethods.put("6845119683729348499", new QueriesGenerated.IfMC(i++)); imcMethods.put("7962467864632495714", new QueriesGenerated.IfMC(i++)); imcMethods.put("6845119683729380880", new QueriesGenerated.IfMC(i++)); imcMethods.put("7962467864633127579", new QueriesGenerated.IfMC(i++)); imcMethods.put("1462305029084462383", new QueriesGenerated.IfMC(i++)); imcMethods.put("6845119683730300412", new QueriesGenerated.IfMC(i++)); imcMethods.put("781140262677966745", new QueriesGenerated.IfMC(i++)); imcMethods.put("6845119683729389262", new QueriesGenerated.IfMC(i++)); imcMethods.put("6099622527106020865", new QueriesGenerated.IfMC(i++)); imcMethods.put("781140262678141910", new QueriesGenerated.IfMC(i++)); imcMethods.put("1462305029084461972", new QueriesGenerated.IfMC(i++)); imcMethods.put("1462305029084452922", new QueriesGenerated.IfMC(i++)); imcMethods.put("5894421362117318859", new QueriesGenerated.IfMC(i++)); imcMethods.put("5894421362117645772", new QueriesGenerated.IfMC(i++)); imcMethods.put("8877724874822463464", new QueriesGenerated.IfMC(i++)); imcMethods.put("781140262678203503", new QueriesGenerated.IfMC(i++)); imcMethods.put("5894421362118001935", new QueriesGenerated.IfMC(i++)); imcMethods.put("5894421362118347989", new QueriesGenerated.IfMC(i++)); imcMethods.put("781140262678249378", new QueriesGenerated.IfMC(i++)); imcMethods.put("1462305029084461805", new QueriesGenerated.IfMC(i++)); imcMethods.put("781140262679960793", new QueriesGenerated.IfMC(i++)); imcMethods.put("6845119683731096024", new QueriesGenerated.IfMC(i++)); imcMethods.put("6845119683731099313", new QueriesGenerated.IfMC(i++)); imcMethods.put("6099622527106052283", new QueriesGenerated.IfMC(i++)); imcMethods.put("2172791612910915661", new QueriesGenerated.IfMC(i++)); imcMethods.put("7832771629085134028", new QueriesGenerated.IfMC(i++)); imcMethods.put("7832771629085133810", new QueriesGenerated.IfMC(i++)); imcMethods.put("7832771629085133712", new QueriesGenerated.IfMC(i++)); imcMethods.put("2339934328870304022", new QueriesGenerated.IfMC(i++)); imcMethods.put("288299486408319664", new QueriesGenerated.IfMC(i++)); imcMethods.put("4297162197631063248", new QueriesGenerated.IfMC(i++)); imcMethods.put("3733986151372083092", new QueriesGenerated.IfMC(i++)); imcMethods.put("8845345751178285143", new QueriesGenerated.IfMC(i++)); imcMethods.put("5970181360960165169", new QueriesGenerated.IfMC(i++)); imcMethods.put("353547257300591821", new QueriesGenerated.IfMC(i++)); imcMethods.put("398731435601112750", new QueriesGenerated.IfMC(i++)); imcMethods.put("6886349771916699397", new QueriesGenerated.IfMC(i++)); imcMethods.put("1787667533297084980", new QueriesGenerated.IfMC(i++)); imcMethods.put("353547257301863302", new QueriesGenerated.IfMC(i++)); imcMethods.put("5002485985634204064", new QueriesGenerated.IfMC(i++)); imcMethods.put("3239569521490198040", new QueriesGenerated.IfMC(i++)); imcMethods.put("4101476690146989261", new QueriesGenerated.IfMC(i++)); imcMethods.put("6354776497085480788", new QueriesGenerated.IfMC(i++)); imcMethods.put("3389822811994148405", new QueriesGenerated.IfMC(i++)); imcMethods.put("3389822811994148456", 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_8488591998065755520(ctx); case 1: return QueriesGenerated.ifMacro_Condition_7477562766052505828(ctx); case 2: return QueriesGenerated.ifMacro_Condition_7477562766052512689(ctx); case 3: return QueriesGenerated.ifMacro_Condition_4743026300739110563(ctx); case 4: return QueriesGenerated.ifMacro_Condition_8369506495128850763(ctx); case 5: return QueriesGenerated.ifMacro_Condition_8654221991637237394(ctx); case 6: return QueriesGenerated.ifMacro_Condition_8654221991637263558(ctx); case 7: return QueriesGenerated.ifMacro_Condition_2794582399917924015(ctx); case 8: return QueriesGenerated.ifMacro_Condition_2540145662854694255(ctx); case 9: return QueriesGenerated.ifMacro_Condition_230419292059619677(ctx); case 10: return QueriesGenerated.ifMacro_Condition_3335207478149118952(ctx); case 11: return QueriesGenerated.ifMacro_Condition_3335207478149152702(ctx); case 12: return QueriesGenerated.ifMacro_Condition_2540145662854694313(ctx); case 13: return QueriesGenerated.ifMacro_Condition_8252715012761547079(ctx); case 14: return QueriesGenerated.ifMacro_Condition_7753763219109750698(ctx); case 15: return QueriesGenerated.ifMacro_Condition_7753763219109811956(ctx); case 16: return QueriesGenerated.ifMacro_Condition_7832771629085272620(ctx); case 17: return QueriesGenerated.ifMacro_Condition_8214652431340024702(ctx); case 18: return QueriesGenerated.ifMacro_Condition_7753544965996885486(ctx); case 19: return QueriesGenerated.ifMacro_Condition_781140262678082421(ctx); case 20: return QueriesGenerated.ifMacro_Condition_1462305029084462173(ctx); case 21: return QueriesGenerated.ifMacro_Condition_6845119683729348501(ctx); case 22: return QueriesGenerated.ifMacro_Condition_7962467864632495716(ctx); case 23: return QueriesGenerated.ifMacro_Condition_6845119683729380882(ctx); case 24: return QueriesGenerated.ifMacro_Condition_7962467864633127581(ctx); case 25: return QueriesGenerated.ifMacro_Condition_1462305029084462384(ctx); case 26: return QueriesGenerated.ifMacro_Condition_6845119683730300414(ctx); case 27: return QueriesGenerated.ifMacro_Condition_781140262677966746(ctx); case 28: return QueriesGenerated.ifMacro_Condition_6845119683729389264(ctx); case 29: return QueriesGenerated.ifMacro_Condition_6099622527106020867(ctx); case 30: return QueriesGenerated.ifMacro_Condition_781140262678141912(ctx); case 31: return QueriesGenerated.ifMacro_Condition_1462305029084461973(ctx); case 32: return QueriesGenerated.ifMacro_Condition_1462305029084452923(ctx); case 33: return QueriesGenerated.ifMacro_Condition_5894421362117318861(ctx); case 34: return QueriesGenerated.ifMacro_Condition_5894421362117645774(ctx); case 35: return QueriesGenerated.ifMacro_Condition_8877724874822463465(ctx); case 36: return QueriesGenerated.ifMacro_Condition_781140262678203505(ctx); case 37: return QueriesGenerated.ifMacro_Condition_5894421362118001937(ctx); case 38: return QueriesGenerated.ifMacro_Condition_5894421362118347991(ctx); case 39: return QueriesGenerated.ifMacro_Condition_781140262678249380(ctx); case 40: return QueriesGenerated.ifMacro_Condition_1462305029084461806(ctx); case 41: return QueriesGenerated.ifMacro_Condition_781140262679960794(ctx); case 42: return QueriesGenerated.ifMacro_Condition_6845119683731096025(ctx); case 43: return QueriesGenerated.ifMacro_Condition_6845119683731099314(ctx); case 44: return QueriesGenerated.ifMacro_Condition_6099622527106052284(ctx); case 45: return QueriesGenerated.ifMacro_Condition_2172791612910915663(ctx); case 46: return QueriesGenerated.ifMacro_Condition_7832771629085134029(ctx); case 47: return QueriesGenerated.ifMacro_Condition_7832771629085133811(ctx); case 48: return QueriesGenerated.ifMacro_Condition_7832771629085133713(ctx); case 49: return QueriesGenerated.ifMacro_Condition_2339934328870304024(ctx); case 50: return QueriesGenerated.ifMacro_Condition_288299486408319666(ctx); case 51: return QueriesGenerated.ifMacro_Condition_4297162197631063250(ctx); case 52: return QueriesGenerated.ifMacro_Condition_3733986151372083094(ctx); case 53: return QueriesGenerated.ifMacro_Condition_8845345751178285144(ctx); case 54: return QueriesGenerated.ifMacro_Condition_5970181360960165170(ctx); case 55: return QueriesGenerated.ifMacro_Condition_353547257300591823(ctx); case 56: return QueriesGenerated.ifMacro_Condition_398731435601112752(ctx); case 57: return QueriesGenerated.ifMacro_Condition_6886349771916699399(ctx); case 58: return QueriesGenerated.ifMacro_Condition_1787667533297084982(ctx); case 59: return QueriesGenerated.ifMacro_Condition_353547257301863303(ctx); case 60: return QueriesGenerated.ifMacro_Condition_5002485985634204066(ctx); case 61: return QueriesGenerated.ifMacro_Condition_3239569521490198041(ctx); case 62: return QueriesGenerated.ifMacro_Condition_4101476690146989263(ctx); case 63: return QueriesGenerated.ifMacro_Condition_6354776497085480789(ctx); case 64: return QueriesGenerated.ifMacro_Condition_3389822811994148406(ctx); case 65: return QueriesGenerated.ifMacro_Condition_3389822811994148457(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("1500819558096430319", new QueriesGenerated.ISCC(i++)); isccMethods.put("1238980147630114159", new QueriesGenerated.ISCC(i++)); isccMethods.put("3389822811994148467", new QueriesGenerated.ISCC(i++)); isccMethods.put("4912951749633403033", new QueriesGenerated.ISCC(i++)); isccMethods.put("4912951749633403526", 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_1500819558096430320(ctx); case 1: return QueriesGenerated.baseMappingRule_Condition_1238980147630114160(ctx); case 2: return QueriesGenerated.baseMappingRule_Condition_3389822811994148468(ctx); case 3: return QueriesGenerated.baseMappingRule_Condition_4912951749633403034(ctx); case 4: return QueriesGenerated.baseMappingRule_Condition_4912951749633403527(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("7259033139236507286", new QueriesGenerated.RTQ(0, "temp")); rtqMethods.put("202934866058978110", new QueriesGenerated.RTQ(1, "")); rtqMethods.put("2591537044436106586", new QueriesGenerated.RTQ(2, "mps.module")); rtqMethods.put("4643216374596368392", new QueriesGenerated.RTQ(3, "aaa")); rtqMethods.put("2591537044436106597", new QueriesGenerated.RTQ(4, "aaa")); rtqMethods.put("7494666316752190009", new QueriesGenerated.RTQ(5, "aaa")); rtqMethods.put("9200313594511245340", new QueriesGenerated.RTQ(6, "aaa")); rtqMethods.put("1517654889523632482", new QueriesGenerated.RTQ(7, "aaa")); rtqMethods.put("8252715012761547083", new QueriesGenerated.RTQ(8, "temp3")); rtqMethods.put("7753763219109676131", new QueriesGenerated.RTQ(9, "aaa")); rtqMethods.put("7753763219109706781", new QueriesGenerated.RTQ(10, "aaa")); rtqMethods.put("6592112598314985687", new QueriesGenerated.RTQ(11, "plugin1")); rtqMethods.put("3389822811994148415", new QueriesGenerated.RTQ(12, "aaa")); rtqMethods.put("3389822811994291110", new QueriesGenerated.RTQ(13, "aaa")); rtqMethods.put("4912951749633427588", new QueriesGenerated.RTQ(14, "")); rtqMethods.put("4912951749633454964", new QueriesGenerated.RTQ(15, "")); } @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_7259033139236507287(ctx); case 1: return QueriesGenerated.referenceMacro_GetReferent_202934866058978111(ctx); case 2: return QueriesGenerated.referenceMacro_GetReferent_2591537044436106587(ctx); case 3: return QueriesGenerated.referenceMacro_GetReferent_4643216374596368393(ctx); case 4: return QueriesGenerated.referenceMacro_GetReferent_2591537044436106598(ctx); case 5: return QueriesGenerated.referenceMacro_GetReferent_7494666316752190010(ctx); case 6: return QueriesGenerated.referenceMacro_GetReferent_9200313594511245341(ctx); case 7: return QueriesGenerated.referenceMacro_GetReferent_1517654889523632483(ctx); case 8: return QueriesGenerated.referenceMacro_GetReferent_8252715012761547084(ctx); case 9: return QueriesGenerated.referenceMacro_GetReferent_7753763219109676132(ctx); case 10: return QueriesGenerated.referenceMacro_GetReferent_7753763219109706782(ctx); case 11: return QueriesGenerated.referenceMacro_GetReferent_6592112598314985688(ctx); case 12: return QueriesGenerated.referenceMacro_GetReferent_3389822811994148416(ctx); case 13: return QueriesGenerated.referenceMacro_GetReferent_3389822811994291111(ctx); case 14: return QueriesGenerated.referenceMacro_GetReferent_4912951749633427589(ctx); case 15: return QueriesGenerated.referenceMacro_GetReferent_4912951749633454965(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, VariableValueQuery> vvqMethods = new HashMap<String, VariableValueQuery>(); { vvqMethods.put("4267986820121148964", new QueriesGenerated.VVQ(0)); vvqMethods.put("609978641554543024", new QueriesGenerated.VVQ(1)); vvqMethods.put("8654221991637263462", new QueriesGenerated.VVQ(2)); vvqMethods.put("7918752904809369309", new QueriesGenerated.VVQ(3)); vvqMethods.put("7477562766051723480", new QueriesGenerated.VVQ(4)); vvqMethods.put("6859736767834869980", new QueriesGenerated.VVQ(5)); vvqMethods.put("3389822811994156004", new QueriesGenerated.VVQ(6)); vvqMethods.put("3340252814672973525", new QueriesGenerated.VVQ(7)); vvqMethods.put("3340252814673340854", new QueriesGenerated.VVQ(8)); vvqMethods.put("3340252814673341013", new QueriesGenerated.VVQ(9)); vvqMethods.put("288299486408963760", new QueriesGenerated.VVQ(10)); vvqMethods.put("4297162197626782013", new QueriesGenerated.VVQ(11)); vvqMethods.put("3733986151371807576", new QueriesGenerated.VVQ(12)); vvqMethods.put("8301447434615581217", new QueriesGenerated.VVQ(13)); vvqMethods.put("5970181360960164992", new QueriesGenerated.VVQ(14)); vvqMethods.put("3239569521490197768", new QueriesGenerated.VVQ(15)); vvqMethods.put("8986357566212610608", new QueriesGenerated.VVQ(16)); vvqMethods.put("6354776497085480747", new QueriesGenerated.VVQ(17)); vvqMethods.put("5970181360963001548", new QueriesGenerated.VVQ(18)); } @NotNull @Override public VariableValueQuery getVariableValueQuery(@NotNull QueryKey queryKey) { final String id = queryKey.getTemplateNode().getNodeId().toString(); if (!(vvqMethods.containsKey(id))) { return super.getVariableValueQuery(queryKey); } return vvqMethods.get(id); } private static class VVQ implements VariableValueQuery { private final int methodKey; /*package*/ VVQ(int methodKey) { this.methodKey = methodKey; } @Nullable public Object evaluate(@NotNull TemplateVarContext ctx) throws GenerationFailureException { switch (methodKey) { case 0: return QueriesGenerated.insertMacro_varValue_4267986820121148965(ctx); case 1: return QueriesGenerated.insertMacro_varValue_609978641554543025(ctx); case 2: return QueriesGenerated.insertMacro_varValue_8654221991637263463(ctx); case 3: return QueriesGenerated.insertMacro_varValue_7918752904809369311(ctx); case 4: return QueriesGenerated.insertMacro_varValue_7477562766051723482(ctx); case 5: return QueriesGenerated.insertMacro_varValue_6859736767834869981(ctx); case 6: return QueriesGenerated.insertMacro_varValue_3389822811994156014(ctx); case 7: return QueriesGenerated.insertMacro_varValue_3340252814672973526(ctx); case 8: return QueriesGenerated.insertMacro_varValue_3340252814673340855(ctx); case 9: return QueriesGenerated.insertMacro_varValue_3340252814673341014(ctx); case 10: return QueriesGenerated.insertMacro_varValue_288299486408963762(ctx); case 11: return QueriesGenerated.insertMacro_varValue_4297162197626782015(ctx); case 12: return QueriesGenerated.insertMacro_varValue_3733986151371807578(ctx); case 13: return QueriesGenerated.insertMacro_varValue_8301447434615581218(ctx); case 14: return QueriesGenerated.insertMacro_varValue_5970181360960164993(ctx); case 15: return QueriesGenerated.insertMacro_varValue_3239569521490197769(ctx); case 16: return QueriesGenerated.insertMacro_varValue_8986357566212610610(ctx); case 17: return QueriesGenerated.insertMacro_varValue_6354776497085480748(ctx); case 18: return QueriesGenerated.insertMacro_varValue_5970181360963001549(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("7753544965996903194", new QueriesGenerated.CAQ(0)); caqMethods.put("4964617264469340744", new QueriesGenerated.CAQ(1)); caqMethods.put("4964617264469629189", new QueriesGenerated.CAQ(2)); caqMethods.put("4912951749633721708", new QueriesGenerated.CAQ(3)); caqMethods.put("4912951749633723518", new QueriesGenerated.CAQ(4)); } @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_7753544965996903195(ctx); case 1: return QueriesGenerated.templateArgumentQuery_4964617264469340744(ctx); case 2: return QueriesGenerated.templateArgumentQuery_4964617264469629189(ctx); case 3: return QueriesGenerated.templateArgumentQuery_4912951749633721708(ctx); case 4: return QueriesGenerated.templateArgumentQuery_4912951749633723518(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, MapPostProcessor> mppMethods = new HashMap<String, MapPostProcessor>(); { mppMethods.put("3747750384908358182", new QueriesGenerated.PPQ(0)); } @NotNull @Override public MapPostProcessor getMapPostProcessor(@NotNull QueryKey queryKey) { final String id = queryKey.getTemplateNode().getNodeId().toString(); if (!(mppMethods.containsKey(id))) { return super.getMapPostProcessor(queryKey); } return mppMethods.get(id); } private static class PPQ implements MapPostProcessor { private final int methodKey; /*package*/ PPQ(int methodKey) { this.methodKey = methodKey; } public void invoke(@NotNull MapSrcMacroPostProcContext ctx) throws GenerationFailureException { switch (methodKey) { case 0: QueriesGenerated.mapSrcMacro_post_mapper_3747750384908360402(ctx); return; default: throw new GenerationFailureException(String.format("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)", ctx.getTemplateReference(), methodKey)); } } } private static boolean eq_x583g4_a0a0a0a0a0a0a3a71(Object a, Object b) { return (a != null ? a.equals(b) : a == b); } private static boolean isNotEmptyString(String str) { return str != null && str.length() > 0; } private static boolean neq_x583g4_a0a0a671(Object a, Object b) { return !(((a != null ? a.equals(b) : a == b))); } private static SNode createGeneratorInternal_String_x583g4_a0a0a0a0zj(Object p0) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode n1 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, "jetbrains.mps.build.mps.structure.GeneratorInternal_String"), null, null, false); n1.setProperty(MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path"), p0 + ""); return n1; } private static SNode createGeneratorInternal_String_x583g4_a0a0a0a0ek(Object p0) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode n1 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, "jetbrains.mps.build.mps.structure.GeneratorInternal_String"), null, null, false); n1.setProperty(MetaAdapterFactory.getProperty(0xcf935df46994e9cL, 0xa132fa109541cba3L, 0xd94b027412f0824L, 0xd94b027412f0827L, "path"), p0 + ""); return n1; } private static boolean isEmptyString(String str) { return str == null || str.length() == 0; } private static SNode createGeneratorInternal_ProjectDependency_x583g4_a0a0a0a1a292(Object p0, Object p1) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode n1 = SModelUtil_new.instantiateConceptDeclaration(MetaAdapterFactory.getConcept(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x5830b38e16a0164cL, "jetbrains.mps.build.structure.GeneratorInternal_ProjectDependency"), null, null, false); n1.setProperty(MetaAdapterFactory.getProperty(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x5830b38e16a0164cL, 0x5830b38e16a017bdL, "path"), p0 + ""); n1.setReferenceTarget(MetaAdapterFactory.getReferenceLink(0x798100da4f0a421aL, 0xb99171f8c50ce5d2L, 0x5830b38e16a0164cL, 0x5830b38e16d823d3L, "project"), (SNode) p1); return n1; } }