예제 #1
0
  public static SNode sourceNodeQuery_1144956008583655031(
      final IOperationContext operationContext, final SourceSubstituteMacroNodeContext _context) {
    if (!(ConceptMethodDeclaration_Behavior.call_isCorrectlyOverriden_1227262347923(
        _context.getNode()))) {
      _context.showErrorMessage(_context.getNode(), "Behavior method is not correctly overriden");
    }

    return SLinkOperations.getTarget(
        SNodeOperations.cast(
            _context.getNode(), "jetbrains.mps.lang.behavior.structure.ConceptMethodDeclaration"),
        "returnType",
        true);
  }
예제 #2
0
 public static SNode sourceNodeQuery_3624172675694702280(
     final IOperationContext operationContext, final SourceSubstituteMacroNodeContext _context) {
   // remove this method at all
   SNode returnType = SLinkOperations.getTarget(_context.getNode(), "returnType", true);
   if (SNodeOperations.isInstanceOf(
           returnType, "jetbrains.mps.baseLanguage.structure.PrimitiveType")
       || (SNodeOperations.isInstanceOf(
               returnType, "jetbrains.mps.baseLanguage.structure.ClassifierType")
           && ListSequence.fromList(
                   SLinkOperations.getTargets(
                       SNodeOperations.cast(
                           returnType, "jetbrains.mps.baseLanguage.structure.ClassifierType"),
                       "parameter",
                       true))
               .isEmpty())
       || SNodeOperations.isInstanceOf(
           returnType, "jetbrains.mps.baseLanguage.structure.StringType")) {
     return BehaviorReflection.invokeVirtual(
         (Class<SNode>) ((Class) Object.class),
         returnType,
         "virtual_getClassExpression_1213877337357",
         new Object[] {});
   } else {
     return _quotation_createNode_x583g4_a0a0c0ac(returnType);
   }
 }
예제 #3
0
 public static SNode sourceNodeQuery_1216862267955(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xd7706f639be2479cL, 0xa3daae92af1e64d5L, 0x11b5282d0dbL, 0x11b5282d0e0L, "inputNode"));
 }
예제 #4
0
 public static SNode sourceNodeQuery_6369875563697213767(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11b0d00332cL, 0xf8c77f1e99L, "rValue"));
 }
예제 #5
0
 public static SNode sourceNodeQuery_1217885063616(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xd7706f639be2479cL, 0xa3daae92af1e64d5L, 0x11b8f9620cdL, 0x11b8f9620d3L, "inputNode"));
 }
예제 #6
0
 public static SNode sourceNodeQuery_257065298285659944(
     final IOperationContext operationContext, final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       SLinkOperations.getTarget(_context.getNode(), "baseMethodDeclaration", false),
       "returnType",
       true);
 }
예제 #7
0
 public static SNode sourceNodeQuery_1221219976856(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xd7706f639be2479cL, 0xa3daae92af1e64d5L, 0x11c5652e4d5L, 0x11c5658c7e1L, "inputNode"));
 }
예제 #8
0
 public static SNode sourceNodeQuery_1196422353779(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xff24ab03965e4d15L, 0x9aed52dc276658f4L, 0x116904e45f4L, 0x116904f9752L, "degree"));
 }
예제 #9
0
 public static SNode sourceNodeQuery_1218050010041(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xd7706f639be2479cL, 0xa3daae92af1e64d5L, 0x11b994bfa0fL, 0x11b994bfa10L, "baseName"));
 }
예제 #10
0
 public static SNode sourceNodeQuery_1217894200331(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xd7706f639be2479cL, 0xa3daae92af1e64d5L, 0x11b8fe60348L, 0x11b8ff121e8L, "userKey"));
 }
예제 #11
0
 public static SNode sourceNodeQuery_1219760682963(
     final IOperationContext operationContext, final SourceSubstituteMacroNodeContext _context) {
   if (SNodeOperations.isInstanceOf(
       _context.getNode(), "jetbrains.mps.quickQueryLanguage.structure.ReplaceModelQuery")) {
     return SLinkOperations.getTarget(
         SLinkOperations.getTarget(
             SNodeOperations.cast(
                 _context.getNode(),
                 "jetbrains.mps.quickQueryLanguage.structure.ReplaceModelQuery"),
             "replace",
             true),
         "body",
         true);
   }
   return SConceptOperations.createNewNode(
       "jetbrains.mps.baseLanguage.structure.StatementList", null);
 }
예제 #12
0
 public static SNode sourceNodeQuery_1216862267891(
     final SourceSubstituteMacroNodeContext _context) {
   // delegate reduction to operation
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x116b46a08c4L, 0x116b46b36c4L, "operation"));
 }
예제 #13
0
 public static SNode sourceNodeQuery_3524394717035465536(
     final IOperationContext operationContext, final SourceSubstituteMacroNodeContext _context) {
   BinaryOperationUtil.getNearestOverloaded(
       _context.getNode(),
       TypeChecker.getInstance()
           .getTypeOf(SLinkOperations.getTarget(_context.getNode(), "leftExpression", true)),
       TypeChecker.getInstance()
           .getTypeOf(SLinkOperations.getTarget(_context.getNode(), "rightExpression", true)),
       ListSequence.fromList(
               SModelOperations.getRootsIncludingImported(
                   SNodeOperations.getModel(_context.getNode()),
                   _context.getScope(),
                   "jetbrains.mps.baseLanguage.overloadedOperators.structure.OverloadedOperatorContainer"))
           .translate(
               new ITranslator2<SNode, SNode>() {
                 public Iterable<SNode> translate(SNode it) {
                   return SLinkOperations.getTargets(it, "operators", true);
                 }
               })
           .toListSequence());
   if ((Boolean) (_context.getNode().getUserObject("reversed"))) {
     return SLinkOperations.getTarget(_context.getNode(), "leftExpression", true);
   }
   return SLinkOperations.getTarget(_context.getNode(), "rightExpression", true);
 }
예제 #14
0
 public static SNode sourceNodeQuery_4540508509676739903(
     final IOperationContext operationContext, final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       SNodeOperations.cast(
           SLinkOperations.getTarget(_context.getNode(), "lValue", true),
           "jetbrains.mps.baseLanguage.structure.DotExpression"),
       "operand",
       true);
 }
예제 #15
0
 public static SNode sourceNodeQuery_1217894200319(
     final IOperationContext operationContext, final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       SNodeOperations.cast(
           SNodeOperations.getParent(_context.getNode()),
           "jetbrains.mps.baseLanguage.structure.DotExpression"),
       "operand",
       true);
 }
예제 #16
0
 public static SNode sourceNodeQuery_1758784108619328008(
     final IOperationContext operationContext, final SourceSubstituteMacroNodeContext _context) {
   return ClassifierTypeUtil.getTypeCoercedToClassifierType(
       SNodeOperations.copyNode(
           TypeChecker.getInstance()
               .getTypeOf(
                   SNodeOperations.getParent(
                       IOperation_Behavior.call_getDotExpression_1224687669172(
                           _context.getNode())))));
 }
예제 #17
0
 public static SNode sourceNodeQuery_2379134940430356891(
     final IOperationContext operationContext, final SourceSubstituteMacroNodeContext _context) {
   return SNodeOperations.cast(
       SLinkOperations.getTarget(
           ListSequence.fromList(SLinkOperations.getTargets(_context.getNode(), "parameter", true))
               .first(),
           "type",
           true),
       "jetbrains.mps.baseLanguage.structure.ClassifierType");
 }
예제 #18
0
 public static SNode sourceNodeQuery_1217891713240(
     final IOperationContext operationContext, final SourceSubstituteMacroNodeContext _context) {
   // delegate reduction to operation
   return SLinkOperations.getTarget(
       SNodeOperations.cast(
           SLinkOperations.getTarget(_context.getNode(), "lValue", true),
           "jetbrains.mps.baseLanguage.structure.DotExpression"),
       "operation",
       true);
 }
예제 #19
0
 public static SNode sourceNodeQuery_1217970189778(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xd7706f639be2479cL,
           0xa3daae92af1e64d5L,
           0x11b9417864bL,
           0x11b94178650L,
           "messageText"));
 }
예제 #20
0
 public static SNode sourceNodeQuery_1217963768161(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xd7706f639be2479cL,
           0xa3daae92af1e64d5L,
           0x11b9417864bL,
           0x11b9418f1d8L,
           "referenceNode"));
 }
예제 #21
0
 public static SNode sourceNodeQuery_1196422335332(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xff24ab03965e4d15L,
           0x9aed52dc276658f4L,
           0x11686b3b49dL,
           0x11686b4a081L,
           "complexExpression"));
 }
예제 #22
0
 public static SNode sourceNodeQuery_5403673535105109160(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xd7706f639be2479cL,
           0xa3daae92af1e64d5L,
           0x4afdb473461e8c79L,
           0x4afdb473461e8c7aL,
           "nodeToCheck"));
 }
예제 #23
0
 public static SNode sourceNodeQuery_5615708520037058480(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xd7706f639be2479cL,
           0xa3daae92af1e64d5L,
           0x4def01254aef34cdL,
           0x4def01254aef7b78L,
           "outputNode"));
 }
예제 #24
0
 public static SNode sourceNodeQuery_6048126956897521731(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xd7706f639be2479cL,
           0xa3daae92af1e64d5L,
           0x6db65d569fb2527L,
           0x1893693a07c29eb7L,
           "inputNode"));
 }
예제 #25
0
 public static SNode sourceNodeQuery_1196429329006(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xf3061a5392264cc5L,
           0xa443f952ceaf5816L,
           0xfbdeb6fecfL,
           0xfbdeb7a11bL,
           "rightExpression"));
 }
예제 #26
0
 public static SNode sourceNodeQuery_1206154777294(
     final IOperationContext operationContext, final SourceSubstituteMacroNodeContext _context) {
   SNode property =
       SLinkOperations.getTarget(
           SNodeOperations.cast(
               SLinkOperations.getTarget(_context.getNode(), "operation", true),
               "jetbrains.mps.baseLanguage.structure.PropertyReference"),
           "property",
           false);
   return SLinkOperations.getTarget(property, "type", true);
 }
예제 #27
0
 public static SNode sourceNodeQuery_562388756444871926(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getReferenceLink(
           0x982eb8df2c964bd7L,
           0x996311712ea622e5L,
           0x7ce01982590bd1eL,
           0x7ce01982590bd48L,
           "concept_old"));
 }
예제 #28
0
 public static SNode sourceNodeQuery_1229480209067(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0xd7706f639be2479cL,
           0xa3daae92af1e64d5L,
           0x11e42912257L,
           0x11e4292232fL,
           "outputNode"));
 }
예제 #29
0
 public static SNode sourceNodeQuery_8814893218132245226(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0x982eb8df2c964bd7L,
           0x996311712ea622e5L,
           0x7c8b08a50a39c6c0L,
           0x7c8b08a50a39c6c1L,
           "iconExpression"));
 }
예제 #30
0
 public static SNode sourceNodeQuery_562388756444903398(
     final SourceSubstituteMacroNodeContext _context) {
   return SLinkOperations.getTarget(
       _context.getNode(),
       MetaAdapterFactory.getContainmentLink(
           0x982eb8df2c964bd7L,
           0x996311712ea622e5L,
           0x7ce019825925c1aL,
           0x7ce019825925c1cL,
           "node"));
 }