Exemplo n.º 1
0
 private static SNode _quotation_createNode_kvqths_a0a0j(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   SNode quotedNode_3 = null;
   SNode quotedNode_4 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.core.structure.structure.SStructureContainer",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setProperty(quotedNode_2, "name", "a");
   quotedNode_3 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.core.structure.structure.SStructureEmptyLine",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_2.addChild("structure", quotedNode_3);
   quotedNode_4 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.core.structure.structure.SInterfaceConcept",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setProperty(quotedNode_4, "name", (String) parameter_1);
   quotedNode_2.addChild("structure", quotedNode_4);
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_yti4yq_a0a0a8a1a0a(
     Object parameter_1, Object parameter_2) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_3 = null;
   SNode quotedNode_4 = null;
   SNode quotedNode_5 = null;
   SNode quotedNode_6 = null;
   quotedNode_3 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.InstanceMethodDeclaration", null, null, false);
   SNodeAccessUtil.setProperty(quotedNode_3, "isAbstract", "true");
   SNodeAccessUtil.setProperty(quotedNode_3, "name", (String) parameter_1);
   quotedNode_4 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.PublicVisibility", null, null, false);
   quotedNode_3.addChild("visibility", quotedNode_4);
   quotedNode_5 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.StatementList", null, null, false);
   quotedNode_3.addChild("body", quotedNode_5);
   quotedNode_6 = (SNode) parameter_2;
   if (quotedNode_6 != null) {
     quotedNode_3.addChild("returnType", HUtil.copyIfNecessary(quotedNode_6));
   }
   return quotedNode_3;
 }
 private static SNode _quotation_createNode_yti4yq_a0a61a1a0a(
     Object parameter_1, Object parameter_2, Object parameter_3, Object parameter_4) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_5 = null;
   SNode quotedNode_6 = null;
   SNode quotedNode_7 = null;
   SNode quotedNode_8 = null;
   SNode quotedNode_9 = null;
   SNode quotedNode_10 = null;
   SNode quotedNode_11 = null;
   SNode quotedNode_12 = null;
   quotedNode_5 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.InstanceMethodDeclaration", null, null, false);
   SNodeAccessUtil.setProperty(quotedNode_5, "isAbstract", "true");
   SNodeAccessUtil.setProperty(quotedNode_5, "name", "assign");
   quotedNode_6 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ParameterDeclaration", null, null, false);
   SNodeAccessUtil.setProperty(quotedNode_6, "name", "from");
   quotedNode_10 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ClassifierType", null, null, false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_10, "classifier", (SNode) parameter_2);
   {
     List<SNode> nodes = (List<SNode>) parameter_1;
     for (SNode child : nodes) {
       quotedNode_10.addChild("parameter", HUtil.copyIfNecessary(child));
     }
   }
   quotedNode_6.addChild("type", quotedNode_10);
   quotedNode_5.addChild("parameter", quotedNode_6);
   quotedNode_7 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.PublicVisibility", null, null, false);
   quotedNode_5.addChild("visibility", quotedNode_7);
   quotedNode_8 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.StatementList", null, null, false);
   quotedNode_5.addChild("body", quotedNode_8);
   quotedNode_9 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ClassifierType", null, null, false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_9, "classifier", (SNode) parameter_4);
   {
     List<SNode> nodes = (List<SNode>) parameter_3;
     for (SNode child : nodes) {
       quotedNode_9.addChild("parameter", HUtil.copyIfNecessary(child));
     }
   }
   quotedNode_5.addChild("returnType", quotedNode_9);
   return quotedNode_5;
 }
Exemplo n.º 4
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) {
       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);
 }
 private static SNode _quotation_createNode_mxwyp3_a0a8a0(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   SNode quotedNode_3 = null;
   SNode quotedNode_4 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.lang.typesystem.structure.JoinType",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_3 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.lang.smodel.structure.SNodeType",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_3, "concept", (SNode) parameter_1);
   quotedNode_2.addChild("argument", quotedNode_3);
   quotedNode_4 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.StringType",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_2.addChild("argument", quotedNode_4);
   return quotedNode_2;
 }
Exemplo n.º 6
0
 @Override
 protected void doFind(SNode node, IScope scope, List<SNode> _results, ProgressMonitor monitor) {
   try {
     String role = SPropertyOperations.getString(node, "name");
     SNode conceptDeclaration =
         SNodeOperations.getAncestor(
             node,
             "jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration",
             false,
             false);
     if (!((conceptDeclaration == null))) {
       for (SNode instance :
           FindUtils.executeFinder(
               "jetbrains.mps.lang.structure.findUsages.ConceptInstances_Finder",
               conceptDeclaration,
               scope,
               monitor)) {
         String property = SNodeAccessUtil.getProperty(instance, role);
         if (property != null && !(property.equals(""))) {
           ListSequence.fromList(_results).addElement(instance);
         }
       }
     }
   } finally {
     monitor.done();
   }
 }
 private static SNode _quotation_createNode_baxqxe_a0a0a2(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   SNode quotedNode_3 = null;
   SNode quotedNode_4 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.DotExpression",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_3 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ThisExpression",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_2.addChild("operand", quotedNode_3);
   quotedNode_4 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.FieldReferenceOperation",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_4, "fieldDeclaration", (SNode) parameter_1);
   quotedNode_2.addChild("operation", quotedNode_4);
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_baxqxe_a0a0c0b(
     Object parameter_1, Object parameter_2, Object parameter_3, Object parameter_4) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_5 = null;
   SNode quotedNode_6 = null;
   SNode quotedNode_7 = null;
   SNode quotedNode_8 = null;
   quotedNode_5 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.FieldDeclaration",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setProperty(quotedNode_5, "name", (String) parameter_4);
   quotedNode_6 = (SNode) parameter_1;
   if (quotedNode_6 != null) {
     quotedNode_5.addChild("visibility", HUtil.copyIfNecessary(quotedNode_6));
   }
   quotedNode_7 = (SNode) parameter_2;
   if (quotedNode_7 != null) {
     quotedNode_5.addChild("type", HUtil.copyIfNecessary(quotedNode_7));
   }
   quotedNode_8 = (SNode) parameter_3;
   if (quotedNode_8 != null) {
     quotedNode_5.addChild("initializer", HUtil.copyIfNecessary(quotedNode_8));
   }
   return quotedNode_5;
 }
 private static SNode _quotation_createNode_fj2vg7_a0m0b(Object parameter_1, Object parameter_2) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_3 = null;
   SNode quotedNode_4 = null;
   quotedNode_3 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   SNodeAccessUtil.setReferenceTarget(
       quotedNode_3,
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       (SNode) parameter_1);
   {
     List<SNode> nodes = (List<SNode>) parameter_2;
     for (SNode child : nodes) {
       quotedNode_3.addChild(
           MetaAdapterFactory.getContainmentLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x102419671abL,
               "parameter"),
           HUtil.copyIfNecessary(child));
     }
   }
   return quotedNode_3;
 }
 private static SNode _quotation_createNode_tgcadk_a0a0b(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.lang.smodel.structure.SNodeType", null, null, false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_2, "concept", (SNode) parameter_1);
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_yti4yq_a0a0a1a1a0a(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.TypeVariableDeclaration", null, null, false);
   SNodeAccessUtil.setProperty(quotedNode_2, "name", (String) parameter_1);
   return quotedNode_2;
 }
Exemplo n.º 12
0
 @Override
 public Collection<SNode> apply(@NotNull final TemplateContext context)
     throws GenerationException {
   final TemplateExecutionEnvironment environment = context.getEnvironment();
   Collection<SNode> tlist1 = null;
   if (QueriesGenerated.baseMappingRule_Condition_1195172400866(
       new BaseMappingRuleContext(context, rule_ief6mt_b0a0c0c11))) {
     final SNode tnode2 =
         environment.createOutputNode(
             MetaAdapterFactory.getConcept(
                 0x157a9668bf58417bL,
                 0x893e53d86388dc56L,
                 0x1164564a526L,
                 "jetbrains.mps.transformation.test.outputLang.structure.OutputNode"));
     try {
       SNodeAccessUtil.setProperty(
           tnode2,
           MetaAdapterFactory.getProperty(
               0x157a9668bf58417bL, 0x893e53d86388dc56L, 0x1164564a526L, 0x11645b5a797L, "text"),
           "<input option : 1>");
     } finally {
     }
     tlist1 = TemplateUtil.singletonList(tnode2);
   } else {
     final SNode tnode3 =
         environment.createOutputNode(
             MetaAdapterFactory.getConcept(
                 0x157a9668bf58417bL,
                 0x893e53d86388dc56L,
                 0x1164564a526L,
                 "jetbrains.mps.transformation.test.outputLang.structure.OutputNode"));
     try {
       SNodeAccessUtil.setProperty(
           tnode3,
           MetaAdapterFactory.getProperty(
               0x157a9668bf58417bL, 0x893e53d86388dc56L, 0x1164564a526L, 0x11645b5a797L, "text"),
           "<input option : default>");
     } finally {
     }
     tlist1 = TemplateUtil.singletonList(tnode3);
   }
   return tlist1;
 }
Exemplo n.º 13
0
 private static SNode _quotation_createNode_a0cuzf_a0a1a5a0(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.build.workflow.structure.BwfAntStatement",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_3 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.core.xml.structure.XmlElement",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setProperty(quotedNode_3, "shortEmptyNotation", "true");
   SNodeAccessUtil.setProperty(quotedNode_3, "tagName", "mkdir");
   quotedNode_4 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.core.xml.structure.XmlAttribute",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setProperty(quotedNode_4, "attrName", "dir");
   quotedNode_5 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.core.xml.structure.XmlTextValue",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setProperty(quotedNode_5, "text", (String) parameter_1);
   quotedNode_4.addChild("value", quotedNode_5);
   quotedNode_3.addChild("attributes", quotedNode_4);
   quotedNode_2.addChild("element", quotedNode_3);
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_teq92u_a0a0a2a0(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.TypeVariableReference", null, null, false);
   SNodeAccessUtil.setReferenceTarget(
       quotedNode_2, "typeVariableDeclaration", (SNode) parameter_1);
   return quotedNode_2;
 }
 private EditorCell createCollection_vx851m_a(EditorContext editorContext, SNode node) {
   EditorCell_Collection editorCell = EditorCell_Collection.createHorizontal(editorContext, node);
   editorCell.setCellId("Collection_vx851m_a");
   editorCell.setBig(true);
   editorCell.addEditorCell(this.createConstant_vx851m_a0(editorContext, node));
   editorCell.addEditorCell(this.createRefNode_vx851m_b0(editorContext, node));
   if (SNodeAccessUtil.hasProperty(node, "name")) {
     editorCell.addEditorCell(this.createNonEmptyProperty_vx851m_c0(editorContext, node));
   }
   return editorCell;
 }
Exemplo n.º 16
0
 private static SNode _quotation_createNode_baxqxe_a0g0b(Object parameter_1, Object parameter_2) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_3 = null;
   SNode quotedNode_4 = null;
   SNode quotedNode_5 = null;
   SNode quotedNode_6 = null;
   SNode quotedNode_7 = null;
   SNode quotedNode_8 = null;
   quotedNode_3 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ExpressionStatement",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_4 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.AssignmentExpression",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_5 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.DotExpression",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_7 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ThisExpression",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_5.addChild("operand", quotedNode_7);
   quotedNode_8 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.FieldReferenceOperation",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_8, "fieldDeclaration", (SNode) parameter_1);
   quotedNode_5.addChild("operation", quotedNode_8);
   quotedNode_4.addChild("lValue", quotedNode_5);
   quotedNode_6 = (SNode) parameter_2;
   if (quotedNode_6 != null) {
     quotedNode_4.addChild("rValue", HUtil.copyIfNecessary(quotedNode_6));
   }
   quotedNode_3.addChild("expression", quotedNode_4);
   return quotedNode_3;
 }
Exemplo n.º 17
0
 private static SNode _quotation_createNode_ixz87t_a0d0l9(Object parameter_1) {
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.build.generictasks.structure.NestedDeclaration",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_2, "declaration", (SNode) parameter_1);
   return quotedNode_2;
 }
Exemplo n.º 18
0
 private static SNode _quotation_createNode_ixz87t_a0a1a1a01j(Object parameter_1) {
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.buildlanguage.structure.StringLiteral",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setProperty(quotedNode_2, "value", (String) parameter_1);
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_tfz3o4_a0a0a0a5a8(Object parameter_1) {
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ParameterReference",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_2, "variableDeclaration", (SNode) parameter_1);
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_jo2b2o_a0b0b(Object parameter_1) {
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.lang.smodel.structure.SNodeType",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_2, "concept", (SNode) parameter_1);
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_65e73j_a0a0a0a(Object parameter_1) {
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.AbstractClassifierReference",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_2, "classifier", (SNode) parameter_1);
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_8luvtd_a0c0b(
     Object parameter_1, Object parameter_2, Object parameter_3) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_4 = null;
   SNode quotedNode_5 = null;
   quotedNode_4 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguageInternal.structure.InternalClassifierType",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setProperty(quotedNode_4, "fqClassName", (String) parameter_1);
   SNodeAccessUtil.setReferenceTarget(quotedNode_4, "classifier", (SNode) parameter_2);
   {
     List<SNode> nodes = (List<SNode>) parameter_3;
     for (SNode child : nodes) {
       quotedNode_4.addChild("parameter", HUtil.copyIfNecessary(child));
     }
   }
   return quotedNode_4;
 }
Exemplo n.º 23
0
 private static SNode _quotation_createNode_st4ewd_a0a3a0a1a1a1(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.lang.resources.structure.IconResourceReference",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_2, "declaration", (SNode) parameter_1);
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_r5g8rc_b0a0a0a0a0d0a1a1a1(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ClassifierType",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setReferenceTarget(quotedNode_2, "classifier", (SNode) parameter_1);
   return quotedNode_2;
 }
Exemplo n.º 25
0
 private static SNode _quotation_createNode_3swbqk_a0a0(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.execution.settings.structure.TemplatePersistentConfigurationType",
           null,
           null,
           false);
   SNodeAccessUtil.setReferenceTarget(
       quotedNode_2, "persistentConfiguration", (SNode) parameter_1);
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_5trf1k_a0a4a41a0(
     Object parameter_1, Object parameter_2, Object parameter_3) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_4 = null;
   SNode quotedNode_5 = null;
   SNode quotedNode_6 = null;
   SNode quotedNode_7 = null;
   SNode quotedNode_8 = null;
   SNode quotedNode_9 = null;
   quotedNode_4 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.InstanceMethodDeclaration",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   SNodeAccessUtil.setProperty(quotedNode_4, "name", (String) parameter_3);
   quotedNode_5 = (SNode) parameter_1;
   if (quotedNode_5 != null) {
     quotedNode_4.addChild("returnType", HUtil.copyIfNecessary(quotedNode_5));
   }
   quotedNode_6 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.PublicVisibility",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_4.addChild("visibility", quotedNode_6);
   quotedNode_7 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.StatementList",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_8 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.ExpressionStatement",
           null,
           null,
           GlobalScope.getInstance(),
           false);
   quotedNode_9 = (SNode) parameter_2;
   if (quotedNode_9 != null) {
     quotedNode_8.addChild("expression", HUtil.copyIfNecessary(quotedNode_9));
   }
   quotedNode_7.addChild("statement", quotedNode_8);
   quotedNode_4.addChild("body", quotedNode_7);
   return quotedNode_4;
 }
 private static SNode _quotation_createNode_yti4yq_a0n0b0a0(
     Object parameter_1, Object parameter_2, Object parameter_3, Object parameter_4) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_5 = null;
   SNode quotedNode_6 = null;
   SNode quotedNode_7 = null;
   SNode quotedNode_8 = null;
   SNode quotedNode_9 = null;
   SNode quotedNode_10 = null;
   SNode quotedNode_11 = null;
   SNode quotedNode_12 = null;
   quotedNode_5 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.Interface", null, null, false);
   SNodeAccessUtil.setProperty(quotedNode_5, "nonStatic", "true");
   SNodeAccessUtil.setProperty(quotedNode_5, "name", (String) parameter_3);
   quotedNode_6 = (SNode) parameter_1;
   if (quotedNode_6 != null) {
     quotedNode_5.addChild("extendedInterface", HUtil.copyIfNecessary(quotedNode_6));
   }
   quotedNode_7 =
       SModelUtil_new.instantiateConceptDeclaration(
           "jetbrains.mps.baseLanguage.structure.PublicVisibility", null, null, false);
   quotedNode_5.addChild("visibility", quotedNode_7);
   {
     List<SNode> nodes = (List<SNode>) parameter_2;
     for (SNode child : nodes) {
       quotedNode_5.addChild("typeVariableDeclaration", HUtil.copyIfNecessary(child));
     }
   }
   {
     List<SNode> nodes = (List<SNode>) parameter_4;
     for (SNode child : nodes) {
       quotedNode_5.addChild("member", HUtil.copyIfNecessary(child));
     }
   }
   return quotedNode_5;
 }
 private static SNode _quotation_createNode_i6fkmm_a0c0b0a0h() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   SNode quotedNode_2 = null;
   SNode quotedNode_3 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0x18bc659203a64e29L,
               0xa83a7ff23bde13baL,
               0xf9eaff2517L,
               "jetbrains.mps.lang.editor.structure.CellModel_Collection"),
           null,
           null,
           false);
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0x18bc659203a64e29L,
               0xa83a7ff23bde13baL,
               0x1143bd721ebL,
               "jetbrains.mps.lang.editor.structure.SelectableStyleSheetItem"),
           null,
           null,
           false);
   SNodeAccessUtil.setProperty(
       quotedNode_2,
       MetaAdapterFactory.getProperty(
           0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x1143bd1283bL, 0x1143bd161dbL, "flag"),
       "false");
   quotedNode_1.addChild(
       MetaAdapterFactory.getContainmentLink(
           0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0x11beb039542L, 0x11beb040d06L, "styleItem"),
       quotedNode_2);
   quotedNode_3 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0x18bc659203a64e29L,
               0xa83a7ff23bde13baL,
               0x120150bb441L,
               "jetbrains.mps.lang.editor.structure.CellLayout_Indent"),
           null,
           null,
           false);
   quotedNode_1.addChild(
       MetaAdapterFactory.getContainmentLink(
           0x18bc659203a64e29L, 0xa83a7ff23bde13baL, 0xf9eaff2517L, 0x10192e0d3baL, "cellLayout"),
       quotedNode_3);
   return quotedNode_1;
 }
 private EditorCell createCollection_kzyi6r_a(EditorContext editorContext, SNode node) {
   EditorCell_Collection editorCell = EditorCell_Collection.createHorizontal(editorContext, node);
   editorCell.setCellId("Collection_kzyi6r_a");
   editorCell.setBig(true);
   editorCell.setAction(CellActionType.COMMENT, new CellAction_Comment(node));
   editorCell.addEditorCell(this.createComponent_kzyi6r_a0(editorContext, node));
   editorCell.addEditorCell(this.createRefNode_kzyi6r_b0(editorContext, node));
   if (SNodeAccessUtil.hasProperty(
       node,
       MetaAdapterFactory.getProperty(
           0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))) {
     editorCell.addEditorCell(this.createNonEmptyProperty_kzyi6r_c0(editorContext, node));
   }
   return editorCell;
 }
 private EditorCell createCollection_kwpl6o_a() {
   EditorCell_Collection editorCell =
       new EditorCell_Collection(getEditorContext(), myNode, new CellLayout_Horizontal());
   editorCell.setCellId("Collection_kwpl6o_a");
   editorCell.setBig(true);
   editorCell.setCellContext(getCellFactory().getCellContext());
   editorCell.addEditorCell(createComponent_kwpl6o_a0());
   if (SNodeAccessUtil.hasProperty(
       myNode,
       MetaAdapterFactory.getProperty(
           0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))) {
     editorCell.addEditorCell(createNonEmptyProperty_kwpl6o_b0());
   }
   return editorCell;
 }