コード例 #1
0
ファイル: QueriesGenerated.java プロジェクト: java66liu/MPS
  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
ファイル: QueriesGenerated.java プロジェクト: java66liu/MPS
  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"));
              }
            });
  }
 public static boolean static_canBeARoot(SModel model, final IOperationContext operationContext) {
   return LanguageAspect.STRUCTURE.is(model) || SModelStereotype.isGeneratorModel(model);
 }
コード例 #4
0
 public static boolean static_canBeARoot(SModel model, final IOperationContext operationContext) {
   return LanguageAspect.STRUCTURE.is(model);
 }