@@ -216,6 +216,12 @@ public static Object propertyMacro_GetValue_10_0(final PropertyMacroContext _con
216216 public static Object propertyMacro_GetValue_12_0 (final PropertyMacroContext _context ) {
217217 return String .valueOf ((int ) PortProvider__BehaviorDescriptor .getPort_id6WBmrsjA4L4 .invoke (_context .getNode ()));
218218 }
219+ public static Object propertyMacro_GetValue_14_0 (final PropertyMacroContext _context ) {
220+ return ListSequence .fromList (SLinkOperations .getChildren (SLinkOperations .getTarget (_context .getNode (), LINKS .queryPrefix$UK48 ), LINKS .segmetns$sMjR )).count ();
221+ }
222+ public static Object propertyMacro_GetValue_14_1 (final PropertyMacroContext _context ) {
223+ return SPropertyOperations .getString (_context .getNode (), PROPS .name$MnvL );
224+ }
219225 public static Object referenceMacro_GetReferent_1_0 (final ReferenceMacroContext _context ) {
220226 return _context .getOutputNodeByInputNodeAndMappingLabel (SLinkOperations .getTarget (_context .getNode (), LINKS .queryParameter$QWu8 ), "QUERY" );
221227 }
@@ -234,6 +240,9 @@ public static boolean ifMacro_Condition_4_0(final IfMacroContext _context) {
234240 public static boolean ifMacro_Condition_10_0 (final IfMacroContext _context ) {
235241 return (SLinkOperations .getTarget (SLinkOperations .getTarget (_context .getNode (), LINKS .declaration$TFiC ), LINKS .defaultValueFunction$2M9p ) != null );
236242 }
243+ public static boolean ifMacro_Condition_14_0 (final IfMacroContext _context ) {
244+ return (SLinkOperations .getTarget (_context .getNode (), LINKS .contentTypeFunction$GjmS ) == null );
245+ }
237246 public static SNode sourceNodeQuery_1_0 (final SourceSubstituteMacroNodeContext _context ) {
238247 return SLinkOperations .getTarget (_context .getNode (), LINKS .buffer$1881 );
239248 }
@@ -408,11 +417,17 @@ public static SNode sourceNodeQuery_13_0(final SourceSubstituteMacroNodeContext
408417 public static SNode sourceNodeQuery_13_1 (final SourceSubstituteMacroNodeContext _context ) {
409418 return SLinkOperations .getTarget (_context .getNode (), LINKS .operation$gs9E );
410419 }
420+ public static SNode sourceNodeQuery_14_0 (final SourceSubstituteMacroNodeContext _context ) {
421+ return SLinkOperations .getTarget (_context .getNode (), LINKS .queryPrefix$UK48 );
422+ }
423+ public static SNode sourceNodeQuery_14_1 (final SourceSubstituteMacroNodeContext _context ) {
424+ return SLinkOperations .getTarget (_context .getNode (), LINKS .canHandleFunction$UKLb );
425+ }
411426 public static Object templateArgumentQuery_6_0 (final TemplateArgumentContext _context ) {
412- return _quotation_createNode_x583g4_a0a511 (IParameterConverter__BehaviorDescriptor .getParameterType_id4rKp80ZJrgq .invoke (SLinkOperations .getTarget (SLinkOperations .getTarget (_context .getNode (), LINKS .parameter$DxS8 ), LINKS .parameterConverter$QDBo )), SPropertyOperations .getString (SLinkOperations .getTarget (_context .getNode (), LINKS .parameter$DxS8 ), PROPS .name$MnvL ));
427+ return _quotation_createNode_x583g4_a0a021 (IParameterConverter__BehaviorDescriptor .getParameterType_id4rKp80ZJrgq .invoke (SLinkOperations .getTarget (SLinkOperations .getTarget (_context .getNode (), LINKS .parameter$DxS8 ), LINKS .parameterConverter$QDBo )), SPropertyOperations .getString (SLinkOperations .getTarget (_context .getNode (), LINKS .parameter$DxS8 ), PROPS .name$MnvL ));
413428 }
414429 public static Object templateArgumentQuery_2_0 (final TemplateArgumentContext _context ) {
415- return _quotation_createNode_x583g4_a0a611 (SPropertyOperations .getString (_context .getNode (), PROPS .name$MnvL ) + "_serialized" );
430+ return _quotation_createNode_x583g4_a0a121 (SPropertyOperations .getString (_context .getNode (), PROPS .name$MnvL ) + "_serialized" );
416431 }
417432 public static Iterable <SNode > sourceNodesQuery_2_0 (final SourceSubstituteMacroNodesContext _context ) {
418433 return SLinkOperations .getChildren (SLinkOperations .getTarget (_context .getNode (), LINKS .queryPrefix$HsUP ), LINKS .segmetns$sMjR );
@@ -428,7 +443,7 @@ public static Iterable<SNode> sourceNodesQuery_2_3(final SourceSubstituteMacroNo
428443 }
429444 public static Iterable <SNode > sourceNodesQuery_2_4 (final SourceSubstituteMacroNodesContext _context ) {
430445 if ((SLinkOperations .getTarget (_context .getNode (), LINKS .canHandleFunction$Shog ) == null )) {
431- return Sequence .<SNode >singleton (_quotation_createNode_x583g4_a0a0a0a121 ());
446+ return Sequence .<SNode >singleton (_quotation_createNode_x583g4_a0a0a0a621 ());
432447 }
433448 return SLinkOperations .getChildren (SLinkOperations .getTarget (SLinkOperations .getTarget (_context .getNode (), LINKS .canHandleFunction$Shog ), LINKS .body$e68K ), LINKS .statement$53DE );
434449 }
@@ -453,6 +468,9 @@ public static Iterable<SNode> sourceNodesQuery_6_1(final SourceSubstituteMacroNo
453468 public static Iterable <SNode > sourceNodesQuery_6_2 (final SourceSubstituteMacroNodesContext _context ) {
454469 return SLinkOperations .getChildren (_context .getNode (), LINKS .initializer$Xe8 );
455470 }
471+ public static Iterable <SNode > sourceNodesQuery_14_0 (final SourceSubstituteMacroNodesContext _context ) {
472+ return SLinkOperations .getChildren (SLinkOperations .getTarget (SLinkOperations .getTarget (_context .getNode (), LINKS .contentTypeFunction$GjmS ), LINKS .body$e68K ), LINKS .statement$53DE );
473+ }
456474 public static boolean mc_Condition_7 (final TemplateQueryContext _context ) {
457475 return !(ListSequence .fromList (SModelOperations .nodes (_context .getInputModel (), CONCEPTS .RequestURLBuilderExpression$pg )).isEmpty ());
458476 }
@@ -656,6 +674,8 @@ public boolean check(TemplateQueryContext ctx) throws GenerationFailureException
656674 snqMethods .put ("3286885855910483636" , new SNQ (i ++));
657675 snqMethods .put ("1829257266377441241" , new SNQ (i ++));
658676 snqMethods .put ("8659513752524931867" , new SNQ (i ++));
677+ snqMethods .put ("2345521174007702708" , new SNQ (i ++));
678+ snqMethods .put ("2345521174007640660" , new SNQ (i ++));
659679 }
660680 @ NotNull
661681 @ Override
@@ -790,6 +810,10 @@ public SNode evaluate(@NotNull SourceSubstituteMacroNodeContext ctx) throws Gene
790810 return QueriesGenerated .sourceNodeQuery_13_0 (ctx );
791811 case 57 :
792812 return QueriesGenerated .sourceNodeQuery_13_1 (ctx );
813+ case 58 :
814+ return QueriesGenerated .sourceNodeQuery_14_0 (ctx );
815+ case 59 :
816+ return QueriesGenerated .sourceNodeQuery_14_1 (ctx );
793817 default :
794818 throw new GenerationFailureException (String .format ("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)" , ctx .getTemplateReference (), methodKey ));
795819 }
@@ -810,6 +834,7 @@ public SNode evaluate(@NotNull SourceSubstituteMacroNodeContext ctx) throws Gene
810834 snsqMethods .put ("4622937352056075756" , new SNsQ (i ++));
811835 snsqMethods .put ("4622937352055440759" , new SNsQ (i ++));
812836 snsqMethods .put ("5111696079054987314" , new SNsQ (i ++));
837+ snsqMethods .put ("3726061952476974940" , new SNsQ (i ++));
813838 }
814839 @ NotNull
815840 @ Override
@@ -852,6 +877,8 @@ public Collection<SNode> evaluate(@NotNull SourceSubstituteMacroNodesContext ctx
852877 return IterableUtil .asCollection (QueriesGenerated .sourceNodesQuery_6_1 (ctx ));
853878 case 11 :
854879 return IterableUtil .asCollection (QueriesGenerated .sourceNodesQuery_6_2 (ctx ));
880+ case 12 :
881+ return IterableUtil .asCollection (QueriesGenerated .sourceNodesQuery_14_0 (ctx ));
855882 default :
856883 throw new GenerationFailureException (String .format ("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)" , ctx .getTemplateReference (), methodKey ));
857884 }
@@ -881,6 +908,8 @@ public Collection<SNode> evaluate(@NotNull SourceSubstituteMacroNodesContext ctx
881908 pvqMethods .put ("5111696079055182095" , new PVQ (i ++, MetaAdapterFactory .getProperty (0xdf345b11b8c74213L , 0xac6648d2a9b75d88L , 0x1115749abe3L , 0x1115767a8eeL , "fqClassName" ), "converter.name" ));
882909 pvqMethods .put ("3286885855910478413" , new PVQ (i ++, MetaAdapterFactory .getProperty (0xdf345b11b8c74213L , 0xac6648d2a9b75d88L , 0x1115749abe3L , 0x1115767a8eeL , "fqClassName" ), "converter.name" ));
883910 pvqMethods .put ("8009469105144847067" , new PVQ (i ++, MetaAdapterFactory .getProperty (0xf3061a5392264cc5L , 0xa443f952ceaf5816L , 0xf93d565d10L , 0xf93d565d11L , "value" ), null ));
911+ pvqMethods .put ("2345521174007962140" , new PVQ (i ++, MetaAdapterFactory .getProperty (0xf3061a5392264cc5L , 0xa443f952ceaf5816L , 0xf8cc59b314L , 0xf8cc59b315L , "value" ), "2" ));
912+ pvqMethods .put ("2345521174008670427" , new PVQ (i ++, MetaAdapterFactory .getProperty (0xceab519525ea4f22L , 0x9b92103b95ca8c0cL , 0x110396eaaa4L , 0x110396ec041L , "name" ), "map_RessourceHandler" ));
884913 }
885914 @ NotNull
886915 @ Override
@@ -942,6 +971,10 @@ public Object evaluate(@NotNull PropertyMacroContext ctx) throws GenerationFailu
942971 return QueriesGenerated .propertyMacro_GetValue_10_0 (ctx );
943972 case 20 :
944973 return QueriesGenerated .propertyMacro_GetValue_12_0 (ctx );
974+ case 21 :
975+ return QueriesGenerated .propertyMacro_GetValue_14_0 (ctx );
976+ case 22 :
977+ return QueriesGenerated .propertyMacro_GetValue_14_1 (ctx );
945978 default :
946979 throw new GenerationFailureException (String .format ("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)" , ctx .getTemplateReference (), methodKey ));
947980 }
@@ -953,6 +986,7 @@ public Object evaluate(@NotNull PropertyMacroContext ctx) throws GenerationFailu
953986 imcMethods .put ("1546095305979194294" , new IfMC (i ++));
954987 imcMethods .put ("1546095305979810535" , new IfMC (i ++));
955988 imcMethods .put ("1546095305979349200" , new IfMC (i ++));
989+ imcMethods .put ("3726061952476961083" , new IfMC (i ++));
956990 }
957991 @ NotNull
958992 @ Override
@@ -977,6 +1011,8 @@ public boolean check(@NotNull IfMacroContext ctx) throws GenerationFailureExcept
9771011 return QueriesGenerated .ifMacro_Condition_4_0 (ctx );
9781012 case 2 :
9791013 return QueriesGenerated .ifMacro_Condition_10_0 (ctx );
1014+ case 3 :
1015+ return QueriesGenerated .ifMacro_Condition_14_0 (ctx );
9801016 default :
9811017 throw new GenerationFailureException (String .format ("Inconsistent QueriesGenerated: there's no condition method for if macro %s (key: #%d)" , ctx .getTemplateReference (), methodKey ));
9821018 }
@@ -1281,7 +1317,7 @@ private static SNode _quotation_createNode_x583g4_b0a0a82() {
12811317 quotedNode_1 .setReference (MetaAdapterFactory .getReferenceLink (0xf3061a5392264cc5L , 0xa443f952ceaf5816L , 0x101de48bf9eL , 0x101de490babL , "classifier" ), SReference .create (MetaAdapterFactory .getReferenceLink (0xf3061a5392264cc5L , 0xa443f952ceaf5816L , 0x101de48bf9eL , 0x101de490babL , "classifier" ), quotedNode_1 , facade .createModelReference ("6ed54515-acc8-4d1e-a16c-9fd6cfe951ea/java:jetbrains.mps.project(MPS.Core/)" ), facade .createNodeId ("~Project" )));
12821318 return quotedNode_1 ;
12831319 }
1284- private static SNode _quotation_createNode_x583g4_a0a511 (Object parameter_1 , Object parameter_2 ) {
1320+ private static SNode _quotation_createNode_x583g4_a0a021 (Object parameter_1 , Object parameter_2 ) {
12851321 PersistenceFacade facade = PersistenceFacade .getInstance ();
12861322 SNode quotedNode_3 = null ;
12871323 SNode quotedNode_4 = null ;
@@ -1293,7 +1329,7 @@ private static SNode _quotation_createNode_x583g4_a0a511(Object parameter_1, Obj
12931329 }
12941330 return quotedNode_3 ;
12951331 }
1296- private static SNode _quotation_createNode_x583g4_a0a611 (Object parameter_1 ) {
1332+ private static SNode _quotation_createNode_x583g4_a0a121 (Object parameter_1 ) {
12971333 PersistenceFacade facade = PersistenceFacade .getInstance ();
12981334 SNode quotedNode_2 = null ;
12991335 SNode quotedNode_3 = null ;
@@ -1304,7 +1340,7 @@ private static SNode _quotation_createNode_x583g4_a0a611(Object parameter_1) {
13041340 quotedNode_2 .addChild (MetaAdapterFactory .getContainmentLink (0xdf345b11b8c74213L , 0xac6648d2a9b75d88L , 0x111fb5bb1f2L , 0x111fb5c4f4cL , "type" ), quotedNode_3 );
13051341 return quotedNode_2 ;
13061342 }
1307- private static SNode _quotation_createNode_x583g4_a0a0a0a121 () {
1343+ private static SNode _quotation_createNode_x583g4_a0a0a0a621 () {
13081344 PersistenceFacade facade = PersistenceFacade .getInstance ();
13091345 SNode quotedNode_1 = null ;
13101346 SNode quotedNode_2 = null ;
@@ -1323,13 +1359,16 @@ private static final class LINKS {
13231359 /*package*/ static final SContainmentLink segmetns$sMjR = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x53d29f104fa64ed7L , 0x53d29f104fa64ef2L , "segmetns" );
13241360 /*package*/ static final SReferenceLink parameter$DxS8 = MetaAdapterFactory .getReferenceLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x4027f9073ff5cf17L , 0x4027f9073ff5cf18L , "parameter" );
13251361 /*package*/ static final SReferenceLink declaration$TFiC = MetaAdapterFactory .getReferenceLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x46f064803fbdb465L , 0x46f064803fbdb466L , "declaration" );
1362+ /*package*/ static final SContainmentLink queryPrefix$UK48 = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x208cf714a5de8e0dL , 0x208cf714a5de8e0eL , "queryPrefix" );
13261363 /*package*/ static final SReferenceLink queryParameter$QWu8 = MetaAdapterFactory .getReferenceLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x205f4376c5884e95L , 0x205f4376c5884e96L , "queryParameter" );
13271364 /*package*/ static final SContainmentLink defaultValueFunction$2M9p = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x3d1bb14fe8385046L , 0x2d9d5d4572ccb260L , "defaultValueFunction" );
1365+ /*package*/ static final SContainmentLink contentTypeFunction$GjmS = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x208cf714a5de8e0dL , 0x33b5a19ab0799c63L , "contentTypeFunction" );
13281366 /*package*/ static final SContainmentLink parameterConverter$QDBo = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x205f4376c585b439L , 0x46f064803fbfba0fL , "parameterConverter" );
13291367 /*package*/ static final SContainmentLink parameterType$5sXM = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x3d1bb14fe8385046L , 0x3d1bb14fe83869abL , "parameterType" );
13301368 /*package*/ static final SContainmentLink port$JG9s = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x4027f9073ff5ce93L , 0x6f2759b71399b650L , "port" );
13311369 /*package*/ static final SContainmentLink value$DBhv = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x4027f9073ff5cf17L , 0x4027f9073ff5cf1aL , "value" );
13321370 /*package*/ static final SContainmentLink parameterType$pSvb = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x46f064803fbdcb2eL , 0x46f064803fbdcb48L , "parameterType" );
1371+ /*package*/ static final SContainmentLink canHandleFunction$UKLb = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x208cf714a5de8e0dL , 0x208cf714a5de8e11L , "canHandleFunction" );
13331372 /*package*/ static final SContainmentLink queryParameters$sPtY = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x4d5ac72154f4d780L , 0x205f4376c585d782L , "queryParameters" );
13341373 /*package*/ static final SContainmentLink canHandleFunction$Shog = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x4d5ac72154f4d780L , 0x5354a94149f3cfcaL , "canHandleFunction" );
13351374 /*package*/ static final SContainmentLink body$e68K = MetaAdapterFactory .getContainmentLink (0xf3061a5392264cc5L , 0xa443f952ceaf5816L , 0x108bbca0f48L , 0x108bbd29b4aL , "body" );
0 commit comments