KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > processing > FileGenerator


1 package spoon.processing;
2
3 import java.io.File JavaDoc;
4 import java.util.List JavaDoc;
5
6 import spoon.reflect.declaration.CtElement;
7
8 /**
9  * This interface should be implemented by processing tasks that generate new
10  * files as processing results. This interface is typically implemented by
11  * processors that generate files during processing. For a given processing
12  * environment, the default file generator is set to the default ouput directory
13  * that is retrieved by using
14  * {@link spoon.processing.Environment#getDefaultFileGenerator()}.
15  */

16 public interface FileGenerator<T extends CtElement> extends Processor<T> {
17
18     /**
19      * Sets the root directory where files should be created.
20      */

21     public void setOutputDirectory(File JavaDoc directory);
22
23     /**
24      * Gets the root directory where files are created.
25      */

26     public File JavaDoc getOutputDirectory();
27
28     /**
29      * Gets the created files.
30      */

31     public List JavaDoc<File JavaDoc> getCreatedFiles();
32
33 }
34
Popular Tags