Exemplo n.º 1
0
 public static Object propertyMacro_GetPropertyValue_257065298285659969(
     final IOperationContext operationContext, final PropertyMacroContext _context) {
   if (LocalBehaviorMethodCall_Behavior.call_isVirtualMethodCall_7148319044498537586(
       _context.getNode())) {
     return ConceptMethodDeclaration_Behavior.call_getCallerMethodName_1225196404032(
         SLinkOperations.getTarget(_context.getNode(), "baseMethodDeclaration", false));
   } else {
     return ConceptMethodDeclaration_Behavior.call_getGeneratedName_1225196404000(
         SLinkOperations.getTarget(_context.getNode(), "baseMethodDeclaration", false));
   }
 }
Exemplo n.º 2
0
 public static Object propertyMacro_GetPropertyValue_7923290658387314641(
     final IOperationContext operationContext, final PropertyMacroContext _context) {
   SNode behavior =
       ConceptMethodDeclaration_Behavior.call_getBehaviour_1225196403947(_context.getNode());
   return jetbrains.mps.util.SNodeOperations.getModelLongName(SNodeOperations.getModel(behavior))
       + "."
       + SPropertyOperations.getString(behavior, "name");
 }
Exemplo n.º 3
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);
  }
Exemplo n.º 4
0
 public static Object referenceMacro_GetReferent_3624172675694702334(
     final IOperationContext operationContext, final ReferenceMacroContext _context) {
   return ConceptMethodDeclaration_Behavior.call_getContainingConcept_1241074789565(
       _context.getNode());
 }