Ejemplo n.º 1
0
 public static boolean ifMacro_Condition_1659807394254493284(final IfMacroContext _context) {
   return (SLinkOperations.getTarget(_context.getNode(), "resources", true) != null)
       && ListSequence.fromList(
               SLinkOperations.getTargets(
                   SLinkOperations.getTarget(_context.getNode(), "resources", true),
                   "elements",
                   true))
           .isNotEmpty();
 }
Ejemplo n.º 2
0
 public static boolean ifMacro_Condition_1201570983175(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return Property_Behavior.call_isDefaultImplementation_1213877383134(_context.getNode())
       || ListSequence.fromList(
               SNodeOperations.getDescendants(
                   _context.getNode(),
                   "jetbrains.mps.baseLanguage.structure.PropertyValueReference",
                   false,
                   new String[] {}))
           .isNotEmpty();
 }
Ejemplo n.º 3
0
 public static boolean ifMacro_Condition_2059109515400476889(final IfMacroContext _context) {
   boolean result =
       ListSequence.fromList(SNodeOperations.getAllSiblings(_context.getNode(), false))
           .any(
               new IWhereFilter<SNode>() {
                 public boolean accept(SNode it) {
                   return SNodeOperations.isInstanceOf(
                           it, "jetbrains.mps.build.workflow.structure.BwfJavaModule")
                       && "IntelliJ"
                           .equals(
                               SPropertyOperations.getString(
                                   SNodeOperations.cast(
                                       it, "jetbrains.mps.build.workflow.structure.BwfJavaModule"),
                                   "compiler"));
                 }
               });
   if (result) {
     if (!(ListSequence.fromList(SNodeOperations.getAllSiblings(_context.getNode(), false))
         .any(
             new IWhereFilter<SNode>() {
               public boolean accept(SNode it) {
                 return SNodeOperations.isInstanceOf(
                         it, "jetbrains.mps.build.workflow.structure.BwfMacro")
                     && "idea_home"
                         .equals(
                             SPropertyOperations.getString(
                                 SNodeOperations.cast(
                                     it, "jetbrains.mps.build.workflow.structure.BwfMacro"),
                                 "name"));
               }
             }))) {
       _context.showErrorMessage(
           ListSequence.fromList(SNodeOperations.getAllSiblings(_context.getNode(), false))
               .where(
                   new IWhereFilter<SNode>() {
                     public boolean accept(SNode it) {
                       return SNodeOperations.isInstanceOf(
                               it, "jetbrains.mps.build.workflow.structure.BwfJavaModule")
                           && "IntelliJ"
                               .equals(
                                   SPropertyOperations.getString(
                                       SNodeOperations.cast(
                                           it,
                                           "jetbrains.mps.build.workflow.structure.BwfJavaModule"),
                                       "compiler"));
                     }
                   })
               .first(),
           "${idea_home} macro is required to use IntelliJ compiler");
     }
   }
   return result;
 }
Ejemplo n.º 4
0
 public static boolean ifMacro_Condition_3618324829955525186(final IfMacroContext _context) {
   return ListSequence.fromList(
           SLinkOperations.getChildren(
               _context.getNode(),
               MetaAdapterFactory.getContainmentLink(
                   0x772f6dcd8c0d48f7L,
                   0x869c908e036f7c8eL,
                   0x11d45f8a8b9L,
                   0x11d45f8a8baL,
                   "attribute")))
       .any(
           new IWhereFilter<SNode>() {
             public boolean accept(SNode it) {
               return SPropertyOperations.getString(
                       it,
                       MetaAdapterFactory.getProperty(
                           0xceab519525ea4f22L,
                           0x9b92103b95ca8c0cL,
                           0x110396eaaa4L,
                           0x110396ec041L,
                           "name"))
                   .equals("text");
             }
           });
 }
Ejemplo n.º 5
0
 public static boolean ifMacro_Condition_3073231036165996124(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return !(TypeChecker.getInstance()
       .getSubtypingManager()
       .isSubtype(
           TypeChecker.getInstance().getTypeOf(_context.getNode()),
           _quotation_createNode_x583g4_b0a0a0v()));
 }
Ejemplo n.º 6
0
 public static boolean ifMacro_Condition_6638738203687335897(final IfMacroContext _context) {
   return SNodeOperations.isInstanceOf(
       _context.getNode(),
       MetaAdapterFactory.getConcept(
           0xc72da2b97cce4447L,
           0x8389f407dc1158b7L,
           0xf979ba0450L,
           "jetbrains.mps.lang.structure.structure.ConceptDeclaration"));
 }
Ejemplo n.º 7
0
 public static boolean ifMacro_Condition_3618324829955525186(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return ListSequence.fromList(SLinkOperations.getTargets(_context.getNode(), "attribute", true))
       .any(
           new IWhereFilter<SNode>() {
             public boolean accept(SNode it) {
               return SPropertyOperations.getString(it, "name").equals("text");
             }
           });
 }
Ejemplo n.º 8
0
 public static boolean ifMacro_Condition_4786190798786384253(final IfMacroContext _context) {
   return (SLinkOperations.getTarget(
           _context.getNode(),
           MetaAdapterFactory.getContainmentLink(
               0x982eb8df2c964bd7L,
               0x996311712ea622e5L,
               0x7ce01982590bd1eL,
               0x426bf72c54e74e64L,
               "concept"))
       == null);
 }
Ejemplo n.º 9
0
 public static boolean ifMacro_Condition_572350672214579331(
     final IOperationContext operationContext, final IfMacroContext _context) {
   SNode enclosingMethod =
       SNodeOperations.getAncestor(
           _context.getNode(),
           "jetbrains.mps.lang.behavior.structure.ConceptMethodDeclaration",
           false,
           false);
   return ((enclosingMethod != null)
       && SPropertyOperations.getBoolean(enclosingMethod, "isStatic"));
 }
Ejemplo n.º 10
0
 public static boolean ifMacro_Condition_1217970189759(final IfMacroContext _context) {
   return SLinkOperations.getTarget(
           _context.getNode(),
           MetaAdapterFactory.getContainmentLink(
               0xd7706f639be2479cL,
               0xa3daae92af1e64d5L,
               0x11b9417864bL,
               0x11b9418f1d8L,
               "referenceNode"))
       != null;
 }
Ejemplo n.º 11
0
 public static boolean ifMacro_Condition_1218050438807(final IfMacroContext _context) {
   return SLinkOperations.getTarget(
           _context.getNode(),
           MetaAdapterFactory.getContainmentLink(
               0xd7706f639be2479cL,
               0xa3daae92af1e64d5L,
               0x11b994bfa0fL,
               0x11b996c8ba1L,
               "contextNode"))
       != null;
 }
Ejemplo n.º 12
0
 public static boolean ifMacro_Condition_4965310991037828399(final IfMacroContext _context) {
   return Icon__BehaviorDescriptor.getResourceId_id2p1v3tOadt0.invoke(
           SLinkOperations.getTarget(
               _context.getNode(),
               MetaAdapterFactory.getContainmentLink(
                   0x982eb8df2c964bd7L,
                   0x996311712ea622e5L,
                   0x7c8b08a50a39c6c3L,
                   0x7c8b08a50a39c6c5L,
                   "icon")))
       != null;
 }
Ejemplo n.º 13
0
 public static boolean ifMacro_Condition_6896005762093597671(final IfMacroContext _context) {
   return ListSequence.fromList(SLinkOperations.getTargets(_context.getNode(), "parts", true))
       .any(
           new IWhereFilter<SNode>() {
             public boolean accept(SNode it) {
               return SNodeOperations.isInstanceOf(
                       it, "jetbrains.mps.build.workflow.structure.BwfMacro")
                   && SPropertyOperations.getBoolean(
                       SNodeOperations.cast(it, "jetbrains.mps.build.workflow.structure.BwfMacro"),
                       "exportToProperiesFile");
             }
           });
 }
Ejemplo n.º 14
0
 public static boolean ifMacro_Condition_2059109515400527266(final IfMacroContext _context) {
   return ListSequence.fromList(SNodeOperations.getAllSiblings(_context.getNode(), false))
       .any(
           new IWhereFilter<SNode>() {
             public boolean accept(SNode it) {
               return SNodeOperations.isInstanceOf(
                       it, "jetbrains.mps.build.workflow.structure.BwfJavaModule")
                   && "IntelliJ"
                       .equals(
                           SPropertyOperations.getString(
                               SNodeOperations.cast(
                                   it, "jetbrains.mps.build.workflow.structure.BwfJavaModule"),
                               "compiler"));
             }
           });
 }
Ejemplo n.º 15
0
 public static boolean ifMacro_Condition_4786190798786580768(final IfMacroContext _context) {
   return SNodeOperations.isInstanceOf(
       SLinkOperations.getTarget(
           _context.getNode(),
           MetaAdapterFactory.getContainmentLink(
               0x982eb8df2c964bd7L,
               0x996311712ea622e5L,
               0x7ce01982590bd1eL,
               0x426bf72c54e74e64L,
               "concept")),
       MetaAdapterFactory.getConcept(
           0x7866978ea0f04cc7L,
           0x81bc4d213d9375e1L,
           0x1120c45902cL,
           "jetbrains.mps.lang.smodel.structure.RefConcept_Reference"));
 }
Ejemplo n.º 16
0
 public static boolean ifMacro_Condition_1202008840753(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return Property_Behavior.call_hasSetter_1213877383224(_context.getNode());
 }
Ejemplo n.º 17
0
 public static boolean ifMacro_Condition_2059109515400349923(final IfMacroContext _context) {
   return isNotEmptyString(SPropertyOperations.getString(_context.getNode(), "compiler"))
       && !(SPropertyOperations.getString(_context.getNode(), "compiler").equals("IntelliJ"));
 }
Ejemplo n.º 18
0
 public static boolean ifMacro_Condition_1171381407187(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return !(SNodeOperations.isInstanceOf(
       SNodeOperations.getParent(_context.getNode()), "jetbrains.mps.xml.structure.Element"));
 }
Ejemplo n.º 19
0
 public static boolean ifMacro_Condition_1217970189759(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return SLinkOperations.getTarget(_context.getNode(), "referenceNode", true) != null;
 }
Ejemplo n.º 20
0
 public static boolean ifMacro_Condition_1201570447832(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return Property_Behavior.call_isCustomImplementation_1213877383144(_context.getNode());
 }
Ejemplo n.º 21
0
 public static boolean ifMacro_Condition_5091697509629088381(final IfMacroContext _context) {
   return isNotEmptyString(SPropertyOperations.getString(_context.getNode(), "compiler"))
       && SPropertyOperations.getString(_context.getNode(), "compiler").equals("IntelliJ");
 }
Ejemplo n.º 22
0
 public static boolean ifMacro_Condition_1659807394254658074(final IfMacroContext _context) {
   return SPropertyOperations.getInteger(_context.getNode(), "heapSize") >= 4;
 }
Ejemplo n.º 23
0
 public static boolean ifMacro_Condition_1659807394254658159(final IfMacroContext _context) {
   return SPropertyOperations.getBoolean(_context.getNode(), "noWarnings");
 }
Ejemplo n.º 24
0
 public static boolean ifMacro_Condition_1563914226484976394(final IfMacroContext _context) {
   return SPropertyOperations.getBoolean(
           SLinkOperations.getTarget(_context.getNode(), "matches", true), "value")
       == true;
 }
Ejemplo n.º 25
0
 public static boolean ifMacro_Condition_1218050438807(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return SLinkOperations.getTarget(_context.getNode(), "contextNode", true) != null;
 }
Ejemplo n.º 26
0
 public static boolean ifMacro_Condition_5351366134229435236(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return Property_Behavior.call_isDefaultImplementation_1213877383134(_context.getNode())
       || Property_Behavior.call_isCustomSetterOnlyImplementation_2622108313329276688(
           _context.getNode());
 }
Ejemplo n.º 27
0
 public static boolean ifMacro_Condition_1202009232386(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return Property_Behavior.call_isCustomImplementation_1213877383144(_context.getNode())
       || Property_Behavior.call_isCustomSetterOnlyImplementation_2622108313329276688(
           _context.getNode());
 }
Ejemplo n.º 28
0
 public static boolean ifMacro_Condition_1202009182092(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return Property_Behavior.call_isDefaultImplementation_1213877383134(_context.getNode());
 }
Ejemplo n.º 29
0
 public static boolean ifMacro_Condition_1179113432151(
     final IOperationContext operationContext, final IfMacroContext _context) {
   return SPropertyOperations.getBoolean(_context.getNode(), "isEmpty");
 }
Ejemplo n.º 30
0
 public static boolean ifMacro_Condition_1659807394254658188(final IfMacroContext _context) {
   return SPropertyOperations.getBoolean(_context.getNode(), "generateDebugInfo");
 }