Exemplo n.º 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);
 }
Exemplo n.º 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);
 }