@Override
 protected void handleChild(Object resultObject, String tagName, Object value)
     throws SAXException {
   SNode result = (SNode) resultObject;
   if ("property".equals(tagName)) {
     String[] child = (String[]) value;
     if (child[1] != null) {
       SNodeAccessUtil.setProperty(result, fieldhelper.readName(child[0]), child[1]);
     }
     return;
   }
   if ("link".equals(tagName)) {
     String[] child = (String[]) value;
     if (child[2] == null) {
       LOG.error("couldn't create reference '" + child[0] + "' : traget node id is null");
       return;
     }
     SReference ref = fieldhelper.readLink(result, child[0], child[2], child[1]);
     if (ref != null) {
       result.setReference(ref.getRole(), ref);
     }
     return;
   }
   if ("node".equals(tagName)) {
     SNode child = (SNode) value;
     result.addChild(((String) child.getUserObject("role")), child);
     child.putUserObject("role", null);
     return;
   }
   super.handleChild(resultObject, tagName, value);
 }
 public SNode createNode() {
   SNode result = null;
   Set<SNode> _parameterValues_129834374 = new HashSet<SNode>();
   SNode quotedNode_1 = null;
   {
     quotedNode_1 =
         SModelUtil_new.instantiateConceptDeclaration(
             "jetbrains.mps.baseLanguage.structure.StaticMethodCall",
             null,
             GlobalScope.getInstance(),
             false);
     SNode quotedNode1_2 = quotedNode_1;
     quotedNode1_2.addReference(
         SReference.create(
             "classConcept",
             quotedNode1_2,
             SModelReference.fromString(
                 "f:java_stub#jetbrains.mps.refactoring.framework.paramchooser.mps(jetbrains.mps.refactoring.framework.paramchooser.mps@java_stub)"),
             SNodeId.fromString("~MPSChooserFactory")));
     quotedNode1_2.addReference(
         SReference.create(
             "baseMethodDeclaration",
             quotedNode1_2,
             SModelReference.fromString(
                 "f:java_stub#jetbrains.mps.refactoring.framework.paramchooser.mps(jetbrains.mps.refactoring.framework.paramchooser.mps@java_stub)"),
             SNodeId.fromString(
                 "~MPSChooserFactory.createNodeChooser(jetbrains.mps.refactoring.framework.RefactoringContext,java.lang.String,jetbrains.mps.refactoring.framework.paramchooser.mps.IChooserSettings):jetbrains.mps.refactoring.framework.paramchooser.IChooser")));
     result = quotedNode1_2;
   }
   return result;
 }
 private static SNode _quotation_createNode_f6ipu3_a0a4a1() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   SNode quotedNode_2 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "6354ebe7-c22a-4a0f-ac54-50b52ab9b065/f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#java.util(JDK/java.util@java_stub)"),
           facade.createNodeId("~List")));
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_2.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_2,
           facade.createModelReference(
               "8865b7a8-5271-43d3-884c-6fd1d9cfdd34/f:java_stub#8865b7a8-5271-43d3-884c-6fd1d9cfdd34#org.jetbrains.mps.openapi.model(MPS.OpenAPI/org.jetbrains.mps.openapi.model@java_stub)"),
           facade.createNodeId("~SNode")));
   quotedNode_1.addChild(
       MetaAdapterFactory.getContainmentLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x102419671abL, "parameter"),
       quotedNode_2);
   return quotedNode_1;
 }
Example #4
0
 protected SNode applyPart0(@NotNull final TemplateContext context) throws GenerationException {
   final TemplateExecutionEnvironment environment = context.getEnvironment();
   final SNode tnode1 =
       environment.createOutputNode(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0xfc37588bc8L,
               "jetbrains.mps.baseLanguage.structure.EnumConstantReference"));
   try {
     environment.nodeCopied(
         context, tnode1, "tpl/r:3ab3501c-2f4b-48e6-9b6c-e31ff8ef3185/3308300503039683834");
     tnode1.setReference(
         MetaAdapterFactory.getReferenceLink(
             0xf3061a5392264cc5L,
             0xa443f952ceaf5816L,
             0xfc37588bc8L,
             0xfc37588bcaL,
             "enumConstantDeclaration"),
         SReference.create(
             MetaAdapterFactory.getReferenceLink(
                 0xf3061a5392264cc5L,
                 0xa443f952ceaf5816L,
                 0xfc37588bc8L,
                 0xfc37588bcaL,
                 "enumConstantDeclaration"),
             tnode1,
             PersistenceFacade.getInstance()
                 .createModelReference("r:f5e9b11f-5073-4786-8ed1-a9e42307c3f8(JavaKaja.runtime)"),
             PersistenceFacade.getInstance().createNodeId("3308300503039569144")));
     tnode1.setReference(
         MetaAdapterFactory.getReferenceLink(
             0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfc37588bc8L, 0x10a758428feL, "enumClass"),
         SReference.create(
             MetaAdapterFactory.getReferenceLink(
                 0xf3061a5392264cc5L,
                 0xa443f952ceaf5816L,
                 0xfc37588bc8L,
                 0x10a758428feL,
                 "enumClass"),
             tnode1,
             PersistenceFacade.getInstance()
                 .createModelReference("r:f5e9b11f-5073-4786-8ed1-a9e42307c3f8(JavaKaja.runtime)"),
             PersistenceFacade.getInstance().createNodeId("3308300503039569134")));
   } finally {
   }
   return tnode1;
 }
 private static SNode _quotation_createNode_v18lly_a0a1() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "r:bd8551c6-e2e3-4499-a261-45b0c886d1d1(jetbrains.mps.refactoring.framework)"),
           facade.createNodeId("4792031542972811415")));
   return quotedNode_1;
 }
 @Nullable
 @Override
 public SReference create(@NotNull TemplateGenerator generator) {
   if (myInputTargetNode != null) {
     // output target node might has been copied (reduced) from the input target node
     // here accept only one-to-one copying
     SNode ultimateTarget = generator.findCopiedOutputNodeForInputNode_unique(myInputTargetNode);
     if (ultimateTarget != null) {
       return createStaticReference(ultimateTarget);
     }
     String resolveInfo = jetbrains.mps.util.SNodeOperations.getResolveInfo(myInputTargetNode);
     if (resolveInfo != null) {
       return createDynamicReference(resolveInfo, getTargetModelReference(generator), null);
     }
     // if input was copied - return one of its copies
     // this can easy produce incorrect references
     SNode ambiguousTarget = generator.findCopiedOutputNodeForInputNode(myInputTargetNode);
     if (ambiguousTarget != null) {
       // RI_CIN is the only case doResolve_Tricky was implemented and hence checkResolveTarget
       // check moved here.
       if (checkResolvedTarget(generator, ambiguousTarget)) {
         return createStaticReference(ambiguousTarget);
       } else {
         return jetbrains.mps.smodel.SReference.create(
             getReferenceRole(),
             getOutputSourceNode(),
             generator.getOutputModel().getReference(),
             null,
             null);
       }
     }
   }
   return createInvalidReference(generator, null);
 }
 private static SNode _quotation_createNode_1lf6x4_a0a0b() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "1ed103c3-3aa6-49b7-9c21-6765ee11f224/java:jetbrains.mps.nodeEditor(MPS.Editor/)"),
           facade.createNodeId("~EditorComponent")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_exju2j_a0a1() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "r:b60215f1-3d3e-41cc-8321-723ef8eb59dd(jetbrains.mps.lang.editor.table.runtime)"),
           facade.createNodeId("4490468428501048480")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_t7bv23_a0a0() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "8865b7a8-5271-43d3-884c-6fd1d9cfdd34/f:java_stub#8865b7a8-5271-43d3-884c-6fd1d9cfdd34#org.jetbrains.mps.openapi.module(MPS.OpenAPI/org.jetbrains.mps.openapi.module@java_stub)"),
           facade.createNodeId("~SModule")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_icy1a5_a0a2() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x103fb730c14L,
               "jetbrains.mps.baseLanguage.structure.ClassifierClassExpression"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x103fb730c14L, 0x103fb73a43eL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x103fb730c14L,
               0x103fb73a43eL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.util(JDK/)"),
           facade.createNodeId("~Map")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_kk3fse_a0a0() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "r:314576fc-3aee-4386-a0a5-a38348ac317d(jetbrains.mps.scope)"),
           facade.createNodeId("3734116213129862372")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_mrte6h_a0a0() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "742f6602-5a2f-4313-aa6e-ae1cd4ffdc61/java:jetbrains.mps.project(MPS.Platform/)"),
           facade.createNodeId("~MPSProject")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_fj2vg7_a1a0a0a7a1() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xed6d7656532c4bc2L,
               0x81d1af945aeb8280L,
               0x10de9cbf8e8L,
               "jetbrains.mps.baseLanguage.blTypes.structure.PrimitiveTypeRef"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xed6d7656532c4bc2L, 0x81d1af945aeb8280L, 0x10de9cbf8e8L, 0x10de9cbf8e7L, "descriptor"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xed6d7656532c4bc2L,
               0x81d1af945aeb8280L,
               0x10de9cbf8e8L,
               0x10de9cbf8e7L,
               "descriptor"),
           quotedNode_1,
           facade.createModelReference(
               "r:00000000-0000-4000-0000-011c895902de(jetbrains.mps.baseLanguage.blTypes.primitiveDescriptors)"),
           facade.createNodeId("1196683941620")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_a1x6vi_a0c0a() {
   SNode quotedNode_1 = null;
   SNode quotedNode_2 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.GenericNewExpression",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ClassCreator",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_2.setReference(
       "baseMethodDeclaration",
       SReference.create(
           "baseMethodDeclaration",
           quotedNode_2,
           SModelReference.fromString(
               "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#java.lang(JDK/java.lang@java_stub)"),
           SNodeId.fromString("~IllegalArgumentException.<init>()")));
   quotedNode_1.addChild("creator", quotedNode_2);
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_w26thq_a0a3a1(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   SNode quotedNode_3 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ClassifierType",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_2.setReference(
       "classifier",
       SReference.create(
           "classifier",
           quotedNode_2,
           facade.createModelReference(
               "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#java.util(JDK/java.util@java_stub)"),
           facade.createNodeId("~List")));
   quotedNode_3 = (SNode) parameter_1;
   if (quotedNode_3 != null) {
     quotedNode_2.addChild("parameter", HUtil.copyIfNecessary(quotedNode_3));
   }
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_4qk8lm_a0d0b() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "r:d98d04fb-4a60-4106-81cf-6cb40b67de4d(jetbrains.mps.ide.findusages.model)"),
           facade.createNodeId("847291649004065516")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_bwi1fo_a0a3() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)"),
           facade.createNodeId("~Object")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_qal9w4_a0a0a3() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "498d89d2-c2e9-11e2-ad49-6cf049e62fe5/java:com.intellij.execution(MPS.IDEA/)"),
           facade.createNodeId("~ExecutionException")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_topy54_a0b0b() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "6ed54515-acc8-4d1e-a16c-9fd6cfe951ea/f:java_stub#6ed54515-acc8-4d1e-a16c-9fd6cfe951ea#jetbrains.mps.lang.dataFlow.framework.instructions(MPS.Core/jetbrains.mps.lang.dataFlow.framework.instructions@java_stub)"),
           facade.createNodeId("~Instruction")));
   return quotedNode_1;
 }
 public SNode createNode() {
   SNode result = null;
   Set<SNode> _parameterValues_129834374 = new HashSet<SNode>();
   SNode quotedNode_1 = null;
   SNode quotedNode_2 = null;
   SNode quotedNode_3 = null;
   SNode quotedNode_4 = null;
   {
     quotedNode_1 =
         SModelUtil_new.instantiateConceptDeclaration(
             "jetbrains.mps.baseLanguage.tuples.structure.IndexedTupleType",
             null,
             GlobalScope.getInstance(),
             false);
     SNode quotedNode1_5 = quotedNode_1;
     {
       quotedNode_2 =
           SModelUtil_new.instantiateConceptDeclaration(
               "jetbrains.mps.baseLanguage.structure.ClassifierType",
               null,
               GlobalScope.getInstance(),
               false);
       SNode quotedNode1_6 = quotedNode_2;
       quotedNode1_6.addReference(
           SReference.create(
               "classifier",
               quotedNode1_6,
               SModelReference.fromString(
                   "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#javax.swing(JDK/javax.swing@java_stub)"),
               SNodeId.fromString("~JComponent")));
       quotedNode_1.addChild("componentType", quotedNode1_6);
     }
     {
       quotedNode_3 =
           SModelUtil_new.instantiateConceptDeclaration(
               "jetbrains.mps.baseLanguage.closures.structure.FunctionType",
               null,
               GlobalScope.getInstance(),
               false);
       SNode quotedNode1_7 = quotedNode_3;
       {
         quotedNode_4 =
             SModelUtil_new.instantiateConceptDeclaration(
                 "jetbrains.mps.baseLanguage.structure.VoidType",
                 null,
                 GlobalScope.getInstance(),
                 false);
         SNode quotedNode1_8 = quotedNode_4;
         quotedNode_3.addChild("resultType", quotedNode1_8);
       }
       quotedNode_1.addChild("componentType", quotedNode1_7);
     }
     result = quotedNode1_5;
   }
   return result;
 }
Example #21
0
 public ModelLinkMap build() {
   // build map based on already loaded model
   for (SNode node : myModel.nodes()) {
     addRoleLocation(ptr(node.getRoleLink()), node);
     addTypeLocation(ptr(SNodeOperations.getConceptDeclaration(node)), node);
     for (String prop : SetSequence.fromSet(node.getPropertyNames())) {
       addNameLocation(ptr(node.getPropertyDeclaration(prop)), node, prop);
     }
     for (SReference ref : Sequence.fromIterable(SNodeOperations.getReferences(node))) {
       addRoleLocation(ptr(SLinkOperations.findLinkDeclaration(ref)), ref);
       if ((SReference) ref instanceof StaticReference) {
         addTargetLocation(
             ptr(SLinkOperations.getTargetNode(ref)), (StaticReference) (SReference) ref);
       } else {
         addDynamicReference(ref.getTargetSModelReference(), (DynamicReference) (SReference) ref);
       }
     }
   }
   return this;
 }
 private static SNode _quotation_createNode_t030w_a0a4a0c0a0() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   SNode quotedNode_2 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.StaticMethodCall",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_1.setReference(
       "baseMethodDeclaration",
       jetbrains.mps.smodel.SReference.create(
           "baseMethodDeclaration",
           quotedNode_1,
           facade.createModelReference(
               "f:java_stub#6ed54515-acc8-4d1e-a16c-9fd6cfe951ea#jetbrains.mps.logging(MPS.Core/jetbrains.mps.logging@java_stub)"),
           facade.createNodeId(
               "~Logger.getLogger(java.lang.String):jetbrains.mps.logging.Logger")));
   quotedNode_1.setReference(
       "classConcept",
       jetbrains.mps.smodel.SReference.create(
           "classConcept",
           quotedNode_1,
           facade.createModelReference(
               "f:java_stub#6ed54515-acc8-4d1e-a16c-9fd6cfe951ea#jetbrains.mps.logging(MPS.Core/jetbrains.mps.logging@java_stub)"),
           facade.createNodeId("~Logger")));
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.StringLiteral",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setProperty(quotedNode_2, "value", "");
   quotedNode_1.addChild("actualArgument", quotedNode_2);
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_t030w_a0a0a0e0a2a0a(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   SNode quotedNode_3 = null;
   SNode quotedNode_4 = null;
   SNode quotedNode_5 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.StaticMethodCall",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_2.setReference(
       "baseMethodDeclaration",
       jetbrains.mps.smodel.SReference.create(
           "baseMethodDeclaration",
           quotedNode_2,
           facade.createModelReference(
               "f:java_stub#6ed54515-acc8-4d1e-a16c-9fd6cfe951ea#org.apache.log4j(MPS.Core/org.apache.log4j@java_stub)"),
           facade.createNodeId("~LogManager.getLogger(java.lang.Class):org.apache.log4j.Logger")));
   quotedNode_2.setReference(
       "classConcept",
       jetbrains.mps.smodel.SReference.create(
           "classConcept",
           quotedNode_2,
           facade.createModelReference(
               "f:java_stub#6ed54515-acc8-4d1e-a16c-9fd6cfe951ea#org.apache.log4j(MPS.Core/org.apache.log4j@java_stub)"),
           facade.createNodeId("~LogManager")));
   {
     List<SNode> nodes = (List<SNode>) parameter_1;
     for (SNode child : nodes) {
       quotedNode_2.addChild("actualArgument", HUtil.copyIfNecessary(child));
     }
   }
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_6u9zql_a0a0b() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   SNode quotedNode_2 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ClassifierType",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_1.setReference(
       "classifier",
       SReference.create(
           "classifier",
           quotedNode_1,
           facade.createModelReference(
               "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#java.lang(JDK/java.lang@java_stub)"),
           facade.createNodeId("~Class")));
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ClassifierType",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_2.setReference(
       "classifier",
       SReference.create(
           "classifier",
           quotedNode_2,
           facade.createModelReference(
               "r:71895ceb-c89d-4545-aa38-89d1cd891f17(jetbrains.mps.make.facet)"),
           facade.createNodeId("6168415856807657096")));
   quotedNode_1.addChild("parameter", quotedNode_2);
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_5hdosv_b0a0b0a() {
   SNode quotedNode_1 = null;
   SNode quotedNode_2 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ClassifierType",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_1.setReference(
       "classifier",
       SReference.create(
           "classifier",
           quotedNode_1,
           SModelReference.fromString(
               "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#java.lang(JDK/java.lang@java_stub)"),
           SNodeId.fromString("~Iterable")));
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ClassifierType",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_2.setReference(
       "classifier",
       SReference.create(
           "classifier",
           quotedNode_2,
           SModelReference.fromString(
               "f:java_stub#6ed54515-acc8-4d1e-a16c-9fd6cfe951ea#jetbrains.mps.lang.script.runtime(MPS.Core/jetbrains.mps.lang.script.runtime@java_stub)"),
           SNodeId.fromString("~AbstractMigrationRefactoring")));
   quotedNode_1.addChild("parameter", quotedNode_2);
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_ynjj1y_a0a2() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   SNode quotedNode_2 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0x8388864671ce4f1cL,
               0x9c53c54016f6ad4fL,
               0x10c25fb076aL,
               "jetbrains.mps.baseLanguage.collections.structure.ListType"),
           null,
           null,
           false);
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_2.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_2,
           facade.createModelReference(
               "1ed103c3-3aa6-49b7-9c21-6765ee11f224/java:jetbrains.mps.openapi.editor.cells(MPS.Editor/)"),
           facade.createNodeId("~SubstituteAction")));
   quotedNode_1.addChild(
       MetaAdapterFactory.getContainmentLink(
           0x8388864671ce4f1cL,
           0x9c53c54016f6ad4fL,
           0x10c25fb076aL,
           0x10c25fe95c5L,
           "elementType"),
       quotedNode_2);
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_2vfzm_c0a0a0c0b() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ClassifierType", null, null, false);
   quotedNode_1.setReference(
       "classifier",
       SReference.create(
           "classifier",
           quotedNode_1,
           facade.createModelReference(
               "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#java.lang(JDK/java.lang@java_stub)"),
           facade.createNodeId("~Object")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_ndr3vg_a0a0b() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.lang.smodel.structure.SNodeType", null, null, false);
   quotedNode_1.setReference(
       "concept",
       SReference.create(
           "concept",
           quotedNode_1,
           facade.createModelReference(
               "r:00000000-0000-4000-0000-011c89590292(jetbrains.mps.lang.structure.structure)"),
           facade.createNodeId("1071489288298")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_t02zqv_a0a2a7a3() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.build.workflow.structure.BwfTaskDependency", null, null, false);
   quotedNode_1.setReference(
       "target",
       SReference.create(
           "target",
           quotedNode_1,
           facade.createModelReference(
               "r:14f06230-41df-42af-9a25-81de46539bf1(jetbrains.mps.build.workflow.accessories)"),
           facade.createNodeId("7128123785277844790")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_6kpc5h_a0a0a(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.StaticFieldReference", null, null, false);
   quotedNode_2.setReference(
       "classifier",
       SReference.create(
           "classifier",
           quotedNode_2,
           facade.createModelReference(
               "r:c8f09818-27d0-4e31-9cdf-dedd92fee7ef(jetbrains.mps.baseLanguage.closures.util)"),
           facade.createNodeId("1225980323340")));
   SNodeAccessUtil.setReferenceTarget(quotedNode_2, "variableDeclaration", (SNode) parameter_1);
   return quotedNode_2;
 }