예제 #1
0
 private AstModelDefinition<AstSummarize> getSummarized(AstScript script, String name) {
   for (AstModelDefinition<?> def : script.models) {
     if (def.name.identifier.equals(name)) {
       return def.asSummarized();
     }
   }
   throw new AssertionError(name);
 }
예제 #2
0
 private AstModelDefinition<AstRecord> getProjection(AstScript script, String name) {
   for (AstModelDefinition<?> def : script.models) {
     if (def.name.identifier.equals(name)) {
       return def.asProjective();
     }
   }
   throw new AssertionError(name);
 }