예제 #1
0
  public static Iterable sourceNodesQuery_7923290658387314672(
      final IOperationContext operationContext, final SourceSubstituteMacroNodesContext _context) {
    SModel behaviorModel = _context.getOriginalInputModel();

    Language language = Language.getLanguageForLanguageAspect(behaviorModel);
    SModel structureModel = LanguageAspect.STRUCTURE.get(language);

    return SModelOperations.getNodes(
        structureModel, "jetbrains.mps.lang.structure.structure.AbstractConceptDeclaration");
  }
예제 #2
0
  public static Iterable sourceNodesQuery_2056529430201935318(
      final IOperationContext operationContext, final SourceSubstituteMacroNodesContext _context) {
    SModel behaviorModel = _context.getOriginalInputModel();

    Language language = Language.getLanguageForLanguageAspect(behaviorModel);
    SModel structureModel = LanguageAspect.STRUCTURE.get(language);

    return ListSequence.fromList(
            SModelOperations.getNodes(
                structureModel, "jetbrains.mps.lang.structure.structure.ConceptDeclaration"))
        .where(
            new IWhereFilter<SNode>() {
              public boolean accept(SNode it) {
                return !(SPropertyOperations.getBoolean(it, "abstract"));
              }
            });
  }