1 package polyglot.ast; 2 3 import java.util.List; 4 5 /** 6 * A <code>SourceCollection</code> represents a collection of source files. 7 * This node should be used only during AST rewriting, just before code 8 * generation in order to generate multiple target files from a single 9 * AST. 10 */ 11 public interface SourceCollection extends Node 12 { 13 /** List of source files in the collection. 14 * @return A list of {@link polyglot.ast.SourceFile SourceFile}. 15 */ 16 List sources(); 17 18 /** Set the list of source files in the collection. 19 * @param sources A list of {@link polyglot.ast.SourceFile SourceFile}. 20 */ 21 SourceCollection sources(List sources); 22 } 23