Example #1
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;
 }
Example #2
0
 @Override
 public boolean isApplicable(@NotNull TemplateContext context) throws GenerationException {
   return QueriesGenerated.createRootRule_Condition_1202245164352(
       new CreateRootRuleContext(context, getRuleNode()));
 }
Example #3
0
 @Override
 public boolean isApplicable(@NotNull TemplateContext context) throws GenerationException {
   return QueriesGenerated.baseMappingRule_Condition_1202243113773(
       new MapRootRuleContext(context, getRuleNode()));
 }
Example #4
0
 @Override
 public boolean isApplicable(@NotNull TemplateContext context) throws GenerationException {
   return QueriesGenerated.baseMappingRule_Condition_1202780894871(
       new ReductionRuleQueryContext(context, getRuleNode()));
 }