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;
 }
 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 #3
0
    @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) {
          result.setProperty(fieldhelper.readName(child[0]), child[1], false);
          fieldlinkMap.addNameLocation(fieldhelper.readLinkId(child[2]), result, child[0]);
        }
        return;
      }
      if ("link".equals(tagName)) {
        String[] child = (String[]) value;
        Pair<Boolean, SNodePointer> pptr = fieldhelper.readLink_internal(child[1]);
        SNodePointer ptr = pptr.o2;
        if (ptr == null || ptr.getModelReference() == null) {
          if (log.isErrorEnabled()) {
            log.error("couldn't create reference '" + child[0] + "' from " + child[1]);
          }
          return;
        }
        /*
          SReference ref;
          if (pptr.o1) {
            ref = new DynamicReference(fieldhelper.readRole(child[0]), result, ptr.getModelReference(), child[2]);
            fieldlinkMap.addDynamicReference(ptr.getModelReference(), (DynamicReference) ref);
          } else {
            ref = new StaticReference(fieldhelper.readRole(child[0]), result, ptr.getModelReference(), ptr.getNodeId(), child[2]);
            fieldlinkMap.addTargetLocation(ptr, (StaticReference) ref);
          }
        */
        StaticReference ref =
            new StaticReference(
                fieldhelper.readRole(child[0]),
                result,
                ptr.getModelReference(),
                ptr.getNodeId(),
                child[2]);
        fieldlinkMap.addTargetLocation(ptr, ref);

        result.addReference(ref);
        fieldlinkMap.addRoleLocation(fieldhelper.readLinkId(child[3]), ref);
        return;
      }
      if ("node".equals(tagName)) {
        SNode child = (SNode) value;
        result.addChild(child.getRole_(), child);
        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.ClassifierType",
             null,
             GlobalScope.getInstance(),
             false);
     SNode quotedNode1_2 = quotedNode_1;
     quotedNode1_2.addReference(
         SReference.create(
             "classifier",
             quotedNode1_2,
             SModelReference.fromString(
                 "r:c02662c0-67c5-4c3a-8d3a-cd7ffe189340(jetbrains.mps.debug.api)"),
             SNodeId.fromString("4474271214082915164")));
     result = quotedNode1_2;
   }
   return result;
 }
 public SNode createNode() {
   SNode result = null;
   Set<SNode> _parameterValues_129834374 = new HashSet<SNode>();
   SNode quotedNode_1 = null;
   {
     quotedNode_1 =
         SModelUtil_new.instantiateConceptDeclaration(
             "jetbrains.mps.lang.smodel.structure.SNodeListType",
             null,
             GlobalScope.getInstance(),
             false);
     SNode quotedNode1_2 = quotedNode_1;
     quotedNode1_2.addReference(
         SReference.create(
             "elementConcept",
             quotedNode1_2,
             SModelReference.fromString(
                 "r:00000000-0000-4000-0000-011c89590288(jetbrains.mps.lang.core.structure)"),
             SNodeId.fromString("1133920641626")));
     result = quotedNode1_2;
   }
   return result;
 }
 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.ClassifierType",
             null,
             GlobalScope.getInstance(),
             false);
     SNode quotedNode1_2 = quotedNode_1;
     quotedNode1_2.addReference(
         SReference.create(
             "classifier",
             quotedNode1_2,
             SModelReference.fromString(
                 "f:java_stub#920eaa0e-ecca-46bc-bee7-4e5c59213dd6#jetbrains.mps(Testbench/jetbrains.mps@java_stub)"),
             SNodeId.fromString("~MPSLaunch")));
     result = quotedNode1_2;
   }
   return result;
 }
Example #7
0
 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.ClassifierType",
             null,
             GlobalScope.getInstance(),
             false);
     SNode quotedNode1_2 = quotedNode_1;
     quotedNode1_2.addReference(
         SReference.create(
             "classifier",
             quotedNode1_2,
             SModelReference.fromString(
                 "f:java_stub#37a3367b-1fb2-44d8-aa6b-18075e74e003#jetbrains.mps.generator.template(jetbrains.mps.generator.template@java_stub)"),
             SNodeId.fromString("~TemplateQueryContext")));
     result = quotedNode1_2;
   }
   return result;
 }
Example #8
0
 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.ClassifierType",
             null,
             GlobalScope.getInstance(),
             false);
     SNode quotedNode1_2 = quotedNode_1;
     quotedNode1_2.addReference(
         SReference.create(
             "classifier",
             quotedNode1_2,
             SModelReference.fromString(
                 "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#java.lang(java.lang@java_stub)"),
             SNodeId.fromString("~Object")));
     result = quotedNode1_2;
   }
   return result;
 }
 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.ClassifierType",
             null,
             GlobalScope.getInstance(),
             false);
     SNode quotedNode1_2 = quotedNode_1;
     quotedNode1_2.addReference(
         SReference.create(
             "classifier",
             quotedNode1_2,
             SModelReference.fromString(
                 "f:java_stub#6ed54515-acc8-4d1e-a16c-9fd6cfe951ea#jetbrains.mps.smodel(MPS.Core/jetbrains.mps.smodel@java_stub)"),
             SNodeId.fromString("~SNode")));
     result = quotedNode1_2;
   }
   return result;
 }
 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.ClassifierType",
             null,
             GlobalScope.getInstance(),
             false);
     SNode quotedNode1_2 = quotedNode_1;
     quotedNode1_2.addReference(
         SReference.create(
             "classifier",
             quotedNode1_2,
             SModelReference.fromString(
                 "f:java_stub#742f6602-5a2f-4313-aa6e-ae1cd4ffdc61#com.intellij.execution.configurations(MPS.Platform/com.intellij.execution.configurations@java_stub)"),
             SNodeId.fromString("~RunProfileState")));
     result = quotedNode1_2;
   }
   return result;
 }
 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.ClassifierType",
             null,
             GlobalScope.getInstance(),
             false);
     SNode quotedNode1_2 = quotedNode_1;
     quotedNode1_2.addReference(
         SReference.create(
             "classifier",
             quotedNode1_2,
             SModelReference.fromString(
                 "r:00f87323-e6a8-42b3-9a91-892d878daf8f(jetbrains.mps.debug)"),
             SNodeId.fromString("251277163127780701")));
     result = quotedNode1_2;
   }
   return result;
 }