KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > ast > SourceCollection


1 package polyglot.ast;
2
3 import java.util.List JavaDoc;
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 JavaDoc 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 JavaDoc sources);
22 }
23
Popular Tags