@@ -216,6 +216,12 @@ public static Object propertyMacro_GetValue_10_0(final PropertyMacroContext _con
216
216
public static Object propertyMacro_GetValue_12_0 (final PropertyMacroContext _context ) {
217
217
return String .valueOf ((int ) PortProvider__BehaviorDescriptor .getPort_id6WBmrsjA4L4 .invoke (_context .getNode ()));
218
218
}
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
+ }
219
225
public static Object referenceMacro_GetReferent_1_0 (final ReferenceMacroContext _context ) {
220
226
return _context .getOutputNodeByInputNodeAndMappingLabel (SLinkOperations .getTarget (_context .getNode (), LINKS .queryParameter$QWu8 ), "QUERY" );
221
227
}
@@ -234,6 +240,9 @@ public static boolean ifMacro_Condition_4_0(final IfMacroContext _context) {
234
240
public static boolean ifMacro_Condition_10_0 (final IfMacroContext _context ) {
235
241
return (SLinkOperations .getTarget (SLinkOperations .getTarget (_context .getNode (), LINKS .declaration$TFiC ), LINKS .defaultValueFunction$2M9p ) != null );
236
242
}
243
+ public static boolean ifMacro_Condition_14_0 (final IfMacroContext _context ) {
244
+ return (SLinkOperations .getTarget (_context .getNode (), LINKS .contentTypeFunction$GjmS ) == null );
245
+ }
237
246
public static SNode sourceNodeQuery_1_0 (final SourceSubstituteMacroNodeContext _context ) {
238
247
return SLinkOperations .getTarget (_context .getNode (), LINKS .buffer$1881 );
239
248
}
@@ -408,11 +417,17 @@ public static SNode sourceNodeQuery_13_0(final SourceSubstituteMacroNodeContext
408
417
public static SNode sourceNodeQuery_13_1 (final SourceSubstituteMacroNodeContext _context ) {
409
418
return SLinkOperations .getTarget (_context .getNode (), LINKS .operation$gs9E );
410
419
}
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
+ }
411
426
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 ));
413
428
}
414
429
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" );
416
431
}
417
432
public static Iterable <SNode > sourceNodesQuery_2_0 (final SourceSubstituteMacroNodesContext _context ) {
418
433
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
428
443
}
429
444
public static Iterable <SNode > sourceNodesQuery_2_4 (final SourceSubstituteMacroNodesContext _context ) {
430
445
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 ());
432
447
}
433
448
return SLinkOperations .getChildren (SLinkOperations .getTarget (SLinkOperations .getTarget (_context .getNode (), LINKS .canHandleFunction$Shog ), LINKS .body$e68K ), LINKS .statement$53DE );
434
449
}
@@ -453,6 +468,9 @@ public static Iterable<SNode> sourceNodesQuery_6_1(final SourceSubstituteMacroNo
453
468
public static Iterable <SNode > sourceNodesQuery_6_2 (final SourceSubstituteMacroNodesContext _context ) {
454
469
return SLinkOperations .getChildren (_context .getNode (), LINKS .initializer$Xe8 );
455
470
}
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
+ }
456
474
public static boolean mc_Condition_7 (final TemplateQueryContext _context ) {
457
475
return !(ListSequence .fromList (SModelOperations .nodes (_context .getInputModel (), CONCEPTS .RequestURLBuilderExpression$pg )).isEmpty ());
458
476
}
@@ -656,6 +674,8 @@ public boolean check(TemplateQueryContext ctx) throws GenerationFailureException
656
674
snqMethods .put ("3286885855910483636" , new SNQ (i ++));
657
675
snqMethods .put ("1829257266377441241" , new SNQ (i ++));
658
676
snqMethods .put ("8659513752524931867" , new SNQ (i ++));
677
+ snqMethods .put ("2345521174007702708" , new SNQ (i ++));
678
+ snqMethods .put ("2345521174007640660" , new SNQ (i ++));
659
679
}
660
680
@ NotNull
661
681
@ Override
@@ -790,6 +810,10 @@ public SNode evaluate(@NotNull SourceSubstituteMacroNodeContext ctx) throws Gene
790
810
return QueriesGenerated .sourceNodeQuery_13_0 (ctx );
791
811
case 57 :
792
812
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 );
793
817
default :
794
818
throw new GenerationFailureException (String .format ("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)" , ctx .getTemplateReference (), methodKey ));
795
819
}
@@ -810,6 +834,7 @@ public SNode evaluate(@NotNull SourceSubstituteMacroNodeContext ctx) throws Gene
810
834
snsqMethods .put ("4622937352056075756" , new SNsQ (i ++));
811
835
snsqMethods .put ("4622937352055440759" , new SNsQ (i ++));
812
836
snsqMethods .put ("5111696079054987314" , new SNsQ (i ++));
837
+ snsqMethods .put ("3726061952476974940" , new SNsQ (i ++));
813
838
}
814
839
@ NotNull
815
840
@ Override
@@ -852,6 +877,8 @@ public Collection<SNode> evaluate(@NotNull SourceSubstituteMacroNodesContext ctx
852
877
return IterableUtil .asCollection (QueriesGenerated .sourceNodesQuery_6_1 (ctx ));
853
878
case 11 :
854
879
return IterableUtil .asCollection (QueriesGenerated .sourceNodesQuery_6_2 (ctx ));
880
+ case 12 :
881
+ return IterableUtil .asCollection (QueriesGenerated .sourceNodesQuery_14_0 (ctx ));
855
882
default :
856
883
throw new GenerationFailureException (String .format ("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)" , ctx .getTemplateReference (), methodKey ));
857
884
}
@@ -881,6 +908,8 @@ public Collection<SNode> evaluate(@NotNull SourceSubstituteMacroNodesContext ctx
881
908
pvqMethods .put ("5111696079055182095" , new PVQ (i ++, MetaAdapterFactory .getProperty (0xdf345b11b8c74213L , 0xac6648d2a9b75d88L , 0x1115749abe3L , 0x1115767a8eeL , "fqClassName" ), "converter.name" ));
882
909
pvqMethods .put ("3286885855910478413" , new PVQ (i ++, MetaAdapterFactory .getProperty (0xdf345b11b8c74213L , 0xac6648d2a9b75d88L , 0x1115749abe3L , 0x1115767a8eeL , "fqClassName" ), "converter.name" ));
883
910
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" ));
884
913
}
885
914
@ NotNull
886
915
@ Override
@@ -942,6 +971,10 @@ public Object evaluate(@NotNull PropertyMacroContext ctx) throws GenerationFailu
942
971
return QueriesGenerated .propertyMacro_GetValue_10_0 (ctx );
943
972
case 20 :
944
973
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 );
945
978
default :
946
979
throw new GenerationFailureException (String .format ("Inconsistent QueriesGenerated: there's no method for query %s (key: #%d)" , ctx .getTemplateReference (), methodKey ));
947
980
}
@@ -953,6 +986,7 @@ public Object evaluate(@NotNull PropertyMacroContext ctx) throws GenerationFailu
953
986
imcMethods .put ("1546095305979194294" , new IfMC (i ++));
954
987
imcMethods .put ("1546095305979810535" , new IfMC (i ++));
955
988
imcMethods .put ("1546095305979349200" , new IfMC (i ++));
989
+ imcMethods .put ("3726061952476961083" , new IfMC (i ++));
956
990
}
957
991
@ NotNull
958
992
@ Override
@@ -977,6 +1011,8 @@ public boolean check(@NotNull IfMacroContext ctx) throws GenerationFailureExcept
977
1011
return QueriesGenerated .ifMacro_Condition_4_0 (ctx );
978
1012
case 2 :
979
1013
return QueriesGenerated .ifMacro_Condition_10_0 (ctx );
1014
+ case 3 :
1015
+ return QueriesGenerated .ifMacro_Condition_14_0 (ctx );
980
1016
default :
981
1017
throw new GenerationFailureException (String .format ("Inconsistent QueriesGenerated: there's no condition method for if macro %s (key: #%d)" , ctx .getTemplateReference (), methodKey ));
982
1018
}
@@ -1281,7 +1317,7 @@ private static SNode _quotation_createNode_x583g4_b0a0a82() {
1281
1317
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" )));
1282
1318
return quotedNode_1 ;
1283
1319
}
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 ) {
1285
1321
PersistenceFacade facade = PersistenceFacade .getInstance ();
1286
1322
SNode quotedNode_3 = null ;
1287
1323
SNode quotedNode_4 = null ;
@@ -1293,7 +1329,7 @@ private static SNode _quotation_createNode_x583g4_a0a511(Object parameter_1, Obj
1293
1329
}
1294
1330
return quotedNode_3 ;
1295
1331
}
1296
- private static SNode _quotation_createNode_x583g4_a0a611 (Object parameter_1 ) {
1332
+ private static SNode _quotation_createNode_x583g4_a0a121 (Object parameter_1 ) {
1297
1333
PersistenceFacade facade = PersistenceFacade .getInstance ();
1298
1334
SNode quotedNode_2 = null ;
1299
1335
SNode quotedNode_3 = null ;
@@ -1304,7 +1340,7 @@ private static SNode _quotation_createNode_x583g4_a0a611(Object parameter_1) {
1304
1340
quotedNode_2 .addChild (MetaAdapterFactory .getContainmentLink (0xdf345b11b8c74213L , 0xac6648d2a9b75d88L , 0x111fb5bb1f2L , 0x111fb5c4f4cL , "type" ), quotedNode_3 );
1305
1341
return quotedNode_2 ;
1306
1342
}
1307
- private static SNode _quotation_createNode_x583g4_a0a0a0a121 () {
1343
+ private static SNode _quotation_createNode_x583g4_a0a0a0a621 () {
1308
1344
PersistenceFacade facade = PersistenceFacade .getInstance ();
1309
1345
SNode quotedNode_1 = null ;
1310
1346
SNode quotedNode_2 = null ;
@@ -1323,13 +1359,16 @@ private static final class LINKS {
1323
1359
/*package*/ static final SContainmentLink segmetns$sMjR = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x53d29f104fa64ed7L , 0x53d29f104fa64ef2L , "segmetns" );
1324
1360
/*package*/ static final SReferenceLink parameter$DxS8 = MetaAdapterFactory .getReferenceLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x4027f9073ff5cf17L , 0x4027f9073ff5cf18L , "parameter" );
1325
1361
/*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" );
1326
1363
/*package*/ static final SReferenceLink queryParameter$QWu8 = MetaAdapterFactory .getReferenceLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x205f4376c5884e95L , 0x205f4376c5884e96L , "queryParameter" );
1327
1364
/*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" );
1328
1366
/*package*/ static final SContainmentLink parameterConverter$QDBo = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x205f4376c585b439L , 0x46f064803fbfba0fL , "parameterConverter" );
1329
1367
/*package*/ static final SContainmentLink parameterType$5sXM = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x3d1bb14fe8385046L , 0x3d1bb14fe83869abL , "parameterType" );
1330
1368
/*package*/ static final SContainmentLink port$JG9s = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x4027f9073ff5ce93L , 0x6f2759b71399b650L , "port" );
1331
1369
/*package*/ static final SContainmentLink value$DBhv = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x4027f9073ff5cf17L , 0x4027f9073ff5cf1aL , "value" );
1332
1370
/*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" );
1333
1372
/*package*/ static final SContainmentLink queryParameters$sPtY = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x4d5ac72154f4d780L , 0x205f4376c585d782L , "queryParameters" );
1334
1373
/*package*/ static final SContainmentLink canHandleFunction$Shog = MetaAdapterFactory .getContainmentLink (0x817e4e70961e4a95L , 0x98a115e9f32231f1L , 0x4d5ac72154f4d780L , 0x5354a94149f3cfcaL , "canHandleFunction" );
1335
1374
/*package*/ static final SContainmentLink body$e68K = MetaAdapterFactory .getContainmentLink (0xf3061a5392264cc5L , 0xa443f952ceaf5816L , 0x108bbca0f48L , 0x108bbd29b4aL , "body" );
0 commit comments