当前位置: 首页>>代码示例>>Java>>正文


Java Sequence类代码示例

本文整理汇总了Java中jetbrains.mps.internal.collections.runtime.Sequence的典型用法代码示例。如果您正苦于以下问题:Java Sequence类的具体用法?Java Sequence怎么用?Java Sequence使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Sequence类属于jetbrains.mps.internal.collections.runtime包,在下文中一共展示了Sequence类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: applyRule

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
public void applyRule(final SNode event, final TypeCheckingContext typeCheckingContext, IsApplicableStatus status) {
  if (isNotEmptyString(SPropertyOperations.getString(event, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))) && isNotEmptyString(SPropertyOperations.getString(event, MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger")))) {
    if (Sequence.fromIterable(SNodeOperations.ofConcept(SNodeOperations.getChildren(SNodeOperations.getParent(event)), MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde68dL, "jetbrains.mps.samples.VoiceMenu.structure.Activity"))).any(new IWhereFilter<SNode>() {
      public boolean accept(SNode it) {
        return SPropertyOperations.getString(SLinkOperations.getTarget(it, MetaAdapterFactory.getReferenceLink(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde68dL, 0x5b6b060cf3fe08f3L, "event")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) == SPropertyOperations.getString(event, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) && eq_ic1ea9_a0a0a0a0a0a0a0a1(SPropertyOperations.getString(SLinkOperations.getTarget(it, MetaAdapterFactory.getReferenceLink(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde68dL, 0x5b6b060cf3fe08f3L, "event")), MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger")), SPropertyOperations.getString(event, MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger")));
      }
    })) {
    } else {
      {
        MessageTarget errorTarget = new NodeMessageTarget();
        IErrorReporter _reporter_2309309498 = typeCheckingContext.reportWarning(event, "Event Not Initiliazed", "r:a3d91a5b-5d89-4c37-bb4a-da96d8c37ef1(jetbrains.mps.samples.VoiceMenu.typesystem)", "2036874050862857652", null, errorTarget);
        {
          BaseQuickFixProvider intentionProvider = new BaseQuickFixProvider("jetbrains.mps.samples.VoiceMenu.typesystem.InitilizeEvent_QuickFix", false);
          intentionProvider.putArgument("srcMenu", SNodeOperations.cast(SNodeOperations.getParent(event), MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde308L, "jetbrains.mps.samples.VoiceMenu.structure.Menu")));
          intentionProvider.putArgument("srcEvent", event);
          _reporter_2309309498.addIntentionProvider(intentionProvider);
        }
      }
    }
  }
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:22,代码来源:CheckEventImplemented_NonTypesystemRule.java

示例2: nodeCondition_ymj9mh_a4a0

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
private boolean nodeCondition_ymj9mh_a4a0() {

    if (isEmptyString(SPropertyOperations.getString(myNode, MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger")))) {
      return true;
    }
    if (isNotEmptyString(SPropertyOperations.getString(myNode, MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger"))) && isEmptyString(SPropertyOperations.getString(myNode, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")))) {
      return false;
    }
    boolean b = Sequence.fromIterable(SNodeOperations.ofConcept(SNodeOperations.getChildren(SNodeOperations.getParent(myNode)), MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde68dL, "jetbrains.mps.samples.VoiceMenu.structure.Activity"))).any(new IWhereFilter<SNode>() {
      public boolean accept(SNode it) {
        return SPropertyOperations.getString(SLinkOperations.getTarget(it, MetaAdapterFactory.getReferenceLink(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde68dL, 0x5b6b060cf3fe08f3L, "event")), MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger")) == SPropertyOperations.getString(myNode, MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger"));
      }
    });
    if (!(b)) {
      return true;
    }
    return false;
  }
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:19,代码来源:Event_EditorBuilder_a.java

示例3: propertyMacro_GetPropertyValue_4728754030118823380

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
public static Object propertyMacro_GetPropertyValue_4728754030118823380(final PropertyMacroContext _context) {
  String name = SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde68dL, 0x5b6b060cf3fe08f3L, "event")), MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger"));
  for (SNode actvt : Sequence.fromIterable(SNodeOperations.ofConcept(SNodeOperations.getNodeAncestors(_context.getNode(), null, false), MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde68dL, "jetbrains.mps.samples.VoiceMenu.structure.Activity")))) {
    name = SPropertyOperations.getString(SLinkOperations.getTarget(actvt, MetaAdapterFactory.getReferenceLink(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde68dL, 0x5b6b060cf3fe08f3L, "event")), MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger")) + name;
  }
  name += SPropertyOperations.getString(SLinkOperations.getTarget(_context.getNode(), MetaAdapterFactory.getReferenceLink(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf3fde68dL, 0x5b6b060cf3fe08f3L, "event")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"));

  String path;
  if (isNotEmptyString(SPropertyOperations.getString(Sequence.fromIterable(SNodeOperations.ofConcept(SNodeOperations.getNodeAncestors(_context.getNode(), null, false), MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf40204c8L, "jetbrains.mps.samples.VoiceMenu.structure.WorkSpace"))).first(), MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf40204c8L, 0x3df50e09c640babdL, "default_path")))) {
    path = ("/" + SPropertyOperations.getString(Sequence.fromIterable(SNodeOperations.ofConcept(SNodeOperations.getNodeAncestors(_context.getNode(), null, false), MetaAdapterFactory.getConcept(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf40204c8L, "jetbrains.mps.samples.VoiceMenu.structure.WorkSpace"))).first(), MetaAdapterFactory.getProperty(0x4bc750d756884f52L, 0xb7d5b263a3393a24L, 0x5b6b060cf40204c8L, 0x3df50e09c640babdL, "default_path")) + "/MPS_ASTERISK/").replaceAll("//", "/");
  } else {
    path = "/etc/asterisk/MPS_ASTERISK/";
  }
  path.replaceAll("//", "/");
  String returnVal = path + name.replaceAll(" ", "_") + ".wav";
  return returnVal;

}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:19,代码来源:QueriesGenerated.java

示例4: applyRule

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
public void applyRule(final SNode event, final TypeCheckingContext typeCheckingContext, IsApplicableStatus status) {
  if (isNotEmptyString(SPropertyOperations.getString(event, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))) && isNotEmptyString(SPropertyOperations.getString(event, MetaAdapterFactory.getProperty(0xe2a803a4d4b843ebL, 0xb458517effd2a87fL, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger")))) {
    if (Sequence.fromIterable(SNodeOperations.ofConcept(SNodeOperations.getChildren(SNodeOperations.getParent(event)), MetaAdapterFactory.getConcept(0xe2a803a4d4b843ebL, 0xb458517effd2a87fL, 0x5b6b060cf3fde68dL, "jetbrains.mps.samples.VoiceMenu.structure.Activity"))).any(new IWhereFilter<SNode>() {
      public boolean accept(SNode it) {
        return SPropertyOperations.getString(SLinkOperations.getTarget(it, MetaAdapterFactory.getReferenceLink(0xe2a803a4d4b843ebL, 0xb458517effd2a87fL, 0x5b6b060cf3fde68dL, 0x5b6b060cf3fe08f3L, "event")), MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) == SPropertyOperations.getString(event, MetaAdapterFactory.getProperty(0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")) && eq_ic1ea9_a0a0a0a0a0a0a0a1(SPropertyOperations.getString(SLinkOperations.getTarget(it, MetaAdapterFactory.getReferenceLink(0xe2a803a4d4b843ebL, 0xb458517effd2a87fL, 0x5b6b060cf3fde68dL, 0x5b6b060cf3fe08f3L, "event")), MetaAdapterFactory.getProperty(0xe2a803a4d4b843ebL, 0xb458517effd2a87fL, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger")), SPropertyOperations.getString(event, MetaAdapterFactory.getProperty(0xe2a803a4d4b843ebL, 0xb458517effd2a87fL, 0x5b6b060cf3fde30cL, 0x5b6b060cf3fde310L, "trigger")));
      }
    })) {
    } else {
      {
        MessageTarget errorTarget = new NodeMessageTarget();
        IErrorReporter _reporter_2309309498 = typeCheckingContext.reportWarning(event, "Event Not Initiliazed", "r:a3d91a5b-5d89-4c37-bb4a-da96d8c37ef1(jetbrains.mps.samples.VoiceMenu.typesystem)", "2036874050862857652", null, errorTarget);
        {
          BaseQuickFixProvider intentionProvider = new BaseQuickFixProvider("jetbrains.mps.samples.VoiceMenu.typesystem.InitilizeEvent_QuickFix", false);
          intentionProvider.putArgument("srcMenu", SNodeOperations.cast(SNodeOperations.getParent(event), MetaAdapterFactory.getConcept(0xe2a803a4d4b843ebL, 0xb458517effd2a87fL, 0x5b6b060cf3fde308L, "jetbrains.mps.samples.VoiceMenu.structure.Menu")));
          intentionProvider.putArgument("srcEvent", event);
          _reporter_2309309498.addIntentionProvider(intentionProvider);
        }
      }
    }
  }
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:22,代码来源:CheckEventImplemented_NonTypesystemRule.java

示例5: generateText

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
@Override
public void generateText(final TextGenContext ctx) {
  final TextGenSupport tgs = new TextGenSupport(ctx);
  if (SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70c7L, 0x70aadf795f73ebL, "Identifier_1")) != null) {
    tgs.appendNode(SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70c7L, 0x70aadf795f73ebL, "Identifier_1")));
  }
  if (ListSequence.fromList(SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70c7L, 0x70aadf795f73ecL, "Qualified_identifier_block_1_1_2"))).count() > 0) {
    tgs.append(" ");
    {
      Iterable<SNode> collection = SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70c7L, 0x70aadf795f73ecL, "Qualified_identifier_block_1_1_2"));
      final SNode lastItem = Sequence.fromIterable(collection).last();
      for (SNode item : collection) {
        tgs.appendNode(item);
        if (item != lastItem) {
          tgs.append(" ");
        }
      }
    }
  }
}
 
开发者ID:vaclav,项目名称:MPS_CSharp,代码行数:21,代码来源:Qualified_identifier_TextGen.java

示例6: generateText

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
@Override
public void generateText(final TextGenContext ctx) {
  final TextGenSupport tgs = new TextGenSupport(ctx);
  if (SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f6fbbL, 0x70aadf795f72cfL, "Identifier_1")) != null) {
    tgs.appendNode(SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f6fbbL, 0x70aadf795f72cfL, "Identifier_1")));
  }
  if (SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f6fbbL, 0x70aadf795f72d0L, "Unbound_type_name_block_1_1_2")) != null) {
    tgs.append(" ");
    tgs.appendNode(SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f6fbbL, 0x70aadf795f72d0L, "Unbound_type_name_block_1_1_2")));
  }
  if (ListSequence.fromList(SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f6fbbL, 0x70aadf795f72d1L, "Unbound_type_name_block_1_2_3"))).count() > 0) {
    tgs.append(" ");
    {
      Iterable<SNode> collection = SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f6fbbL, 0x70aadf795f72d1L, "Unbound_type_name_block_1_2_3"));
      final SNode lastItem = Sequence.fromIterable(collection).last();
      for (SNode item : collection) {
        tgs.appendNode(item);
        if (item != lastItem) {
          tgs.append(" ");
        }
      }
    }
  }
}
 
开发者ID:vaclav,项目名称:MPS_CSharp,代码行数:25,代码来源:Unbound_type_name_TextGen.java

示例7: generateText

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
@Override
public void generateText(final TextGenContext ctx) {
  final TextGenSupport tgs = new TextGenSupport(ctx);
  if (ListSequence.fromList(SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70f0L, 0x70aadf795f7414L, "All_member_modifier_1"))).count() > 0) {
    {
      Iterable<SNode> collection = SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70f0L, 0x70aadf795f7414L, "All_member_modifier_1"));
      final SNode lastItem = Sequence.fromIterable(collection).last();
      for (SNode item : collection) {
        tgs.appendNode(item);
        if (item != lastItem) {
          tgs.append(" ");
        }
      }
    }
  }
}
 
开发者ID:vaclav,项目名称:MPS_CSharp,代码行数:17,代码来源:All_member_modifiers_TextGen.java

示例8: generateText

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
@Override
public void generateText(final TextGenContext ctx) {
  final TextGenSupport tgs = new TextGenSupport(ctx);
  if (ListSequence.fromList(SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f706dL, 0x70aadf795f7380L, "Statement_1"))).count() > 0) {
    {
      Iterable<SNode> collection = SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f706dL, 0x70aadf795f7380L, "Statement_1"));
      final SNode lastItem = Sequence.fromIterable(collection).last();
      for (SNode item : collection) {
        tgs.appendNode(item);
        if (item != lastItem) {
          tgs.append(" ");
        }
      }
    }
  }
}
 
开发者ID:vaclav,项目名称:MPS_CSharp,代码行数:17,代码来源:Statement_list_TextGen.java

示例9: generateText

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
@Override
public void generateText(final TextGenContext ctx) {
  final TextGenSupport tgs = new TextGenSupport(ctx);
  if (SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70b3L, 0x70aadf795f73d8L, "Namespace_or_type_name_block_1_1_1")) != null) {
    tgs.appendNode(SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70b3L, 0x70aadf795f73d8L, "Namespace_or_type_name_block_1_1_1")));
  }
  if (ListSequence.fromList(SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70b3L, 0x70aadf795f73d9L, "Namespace_or_type_name_block_1_2_2"))).count() > 0) {
    tgs.append(" ");
    {
      Iterable<SNode> collection = SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70b3L, 0x70aadf795f73d9L, "Namespace_or_type_name_block_1_2_2"));
      final SNode lastItem = Sequence.fromIterable(collection).last();
      for (SNode item : collection) {
        tgs.appendNode(item);
        if (item != lastItem) {
          tgs.append(" ");
        }
      }
    }
  }
}
 
开发者ID:vaclav,项目名称:MPS_CSharp,代码行数:21,代码来源:Namespace_or_type_name_TextGen.java

示例10: generateText

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
@Override
public void generateText(final TextGenContext ctx) {
  final TextGenSupport tgs = new TextGenSupport(ctx);
  tgs.append("?");
  tgs.append("[");
  if (SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70beL, 0x70aadf795f73e0L, "Indexer_argument_1")) != null) {
    tgs.appendNode(SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70beL, 0x70aadf795f73e0L, "Indexer_argument_1")));
  }
  if (ListSequence.fromList(SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70beL, 0x70aadf795f73e1L, "Bracket_expression_block_1_1_2"))).count() > 0) {
    tgs.append(" ");
    {
      Iterable<SNode> collection = SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70beL, 0x70aadf795f73e1L, "Bracket_expression_block_1_1_2"));
      final SNode lastItem = Sequence.fromIterable(collection).last();
      for (SNode item : collection) {
        tgs.appendNode(item);
        if (item != lastItem) {
          tgs.append(" ");
        }
      }
    }
  }
  tgs.append("]");
}
 
开发者ID:vaclav,项目名称:MPS_CSharp,代码行数:24,代码来源:Bracket_expression_TextGen.java

示例11: generateText

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
@Override
public void generateText(final TextGenContext ctx) {
  final TextGenSupport tgs = new TextGenSupport(ctx);
  tgs.append("[");
  if (SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f703dL, 0x70aadf795f7352L, "Expression_list_1")) != null) {
    tgs.appendNode(SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f703dL, 0x70aadf795f7352L, "Expression_list_1")));
  }
  tgs.append("]");
  if (ListSequence.fromList(SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f703dL, 0x70aadf795f7353L, "Rank_specifier_2"))).count() > 0) {
    {
      Iterable<SNode> collection = SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f703dL, 0x70aadf795f7353L, "Rank_specifier_2"));
      final SNode lastItem = Sequence.fromIterable(collection).last();
      for (SNode item : collection) {
        tgs.appendNode(item);
        if (item != lastItem) {
          tgs.append(" ");
        }
      }
    }
  }
  if (SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f703dL, 0x70aadf795f7354L, "Array_initializer_3")) != null) {
    tgs.append(" ");
    tgs.appendNode(SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f703dL, 0x70aadf795f7354L, "Array_initializer_3")));
  }
}
 
开发者ID:vaclav,项目名称:MPS_CSharp,代码行数:26,代码来源:Primary_expression_start_block_9_2_3_TextGen.java

示例12: generateText

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
@Override
public void generateText(final TextGenContext ctx) {
  final TextGenSupport tgs = new TextGenSupport(ctx);
  tgs.append("orderby");
  if (SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f724eL, 0x70aadf795f74f5L, "Ordering_1")) != null) {
    tgs.append(" ");
    tgs.appendNode(SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f724eL, 0x70aadf795f74f5L, "Ordering_1")));
  }
  if (ListSequence.fromList(SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f724eL, 0x70aadf795f74f6L, "Orderby_clause_block_1_1_2"))).count() > 0) {
    tgs.append(" ");
    {
      Iterable<SNode> collection = SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f724eL, 0x70aadf795f74f6L, "Orderby_clause_block_1_1_2"));
      final SNode lastItem = Sequence.fromIterable(collection).last();
      for (SNode item : collection) {
        tgs.appendNode(item);
        if (item != lastItem) {
          tgs.append(" ");
        }
      }
    }
  }
}
 
开发者ID:vaclav,项目名称:MPS_CSharp,代码行数:23,代码来源:Orderby_clause_TextGen.java

示例13: generateText

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
@Override
public void generateText(final TextGenContext ctx) {
  final TextGenSupport tgs = new TextGenSupport(ctx);
  if (SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70f7L, 0x70aadf795f7418L, "Base_type_1")) != null) {
    tgs.appendNode(SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70f7L, 0x70aadf795f7418L, "Base_type_1")));
  }
  if (ListSequence.fromList(SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70f7L, 0x70aadf795f7419L, "IsType_block_1_1_2"))).count() > 0) {
    tgs.append(" ");
    {
      Iterable<SNode> collection = SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f70f7L, 0x70aadf795f7419L, "IsType_block_1_1_2"));
      final SNode lastItem = Sequence.fromIterable(collection).last();
      for (SNode item : collection) {
        tgs.appendNode(item);
        if (item != lastItem) {
          tgs.append(" ");
        }
      }
    }
  }
  tgs.append("?");
}
 
开发者ID:vaclav,项目名称:MPS_CSharp,代码行数:22,代码来源:IsType_TextGen.java

示例14: generateText

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
@Override
public void generateText(final TextGenContext ctx) {
  final TextGenSupport tgs = new TextGenSupport(ctx);
  if (SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f71c2L, 0x70aadf795f7495L, "Base_type_1")) != null) {
    tgs.appendNode(SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f71c2L, 0x70aadf795f7495L, "Base_type_1")));
  }
  if (ListSequence.fromList(SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f71c2L, 0x70aadf795f7496L, "Array_type_block_1_1_2"))).count() > 0) {
    tgs.append(" ");
    {
      Iterable<SNode> collection = SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f71c2L, 0x70aadf795f7496L, "Array_type_block_1_1_2"));
      final SNode lastItem = Sequence.fromIterable(collection).last();
      for (SNode item : collection) {
        tgs.appendNode(item);
        if (item != lastItem) {
          tgs.append(" ");
        }
      }
    }
  }
}
 
开发者ID:vaclav,项目名称:MPS_CSharp,代码行数:21,代码来源:Array_type_TextGen.java

示例15: generateText

import jetbrains.mps.internal.collections.runtime.Sequence; //导入依赖的package包/类
@Override
public void generateText(final TextGenContext ctx) {
  final TextGenSupport tgs = new TextGenSupport(ctx);
  if (SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f6fd5L, 0x70aadf795f72edL, "Exclusive_or_expression_1")) != null) {
    tgs.appendNode(SLinkOperations.getTarget(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f6fd5L, 0x70aadf795f72edL, "Exclusive_or_expression_1")));
  }
  if (ListSequence.fromList(SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f6fd5L, 0x70aadf795f72eeL, "Inclusive_or_expression_block_1_1_2"))).count() > 0) {
    tgs.append(" ");
    {
      Iterable<SNode> collection = SLinkOperations.getChildren(ctx.getPrimaryInput(), MetaAdapterFactory.getContainmentLink(0x5f522167449a4486L, 0x94654f30de6e5cecL, 0x70aadf795f6fd5L, 0x70aadf795f72eeL, "Inclusive_or_expression_block_1_1_2"));
      final SNode lastItem = Sequence.fromIterable(collection).last();
      for (SNode item : collection) {
        tgs.appendNode(item);
        if (item != lastItem) {
          tgs.append(" ");
        }
      }
    }
  }
}
 
开发者ID:vaclav,项目名称:MPS_CSharp,代码行数:21,代码来源:Inclusive_or_expression_TextGen.java


注:本文中的jetbrains.mps.internal.collections.runtime.Sequence类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。