gov.llnl.babel.backend
Interface FileListener
- All Known Implementing Classes: 
- Dependencies, DependenciesGenerator, MakefileGenerator, PackageMakeInfoGenerator, SetupGenerator
- public interface FileListener 
Various other objects, primarily the Makefile generators, need to know
 all the files that the file manager creates. Objects that implement this
 interface can register themselves with the
 FileManager to receive notification when
 files are created.
| Method Summary | 
|  void | newFile(SymbolID id,
        int type,
        java.lang.String role,
        java.lang.String dir,
        java.lang.String name)This method is called by the
 FileManagerfor each new file it creates. | 
 
newFile
void newFile(SymbolID id,
             int type,
             java.lang.String role,
             java.lang.String dir,
             java.lang.String name)
- This method is called by the FileManagerfor each new file it creates.
 
- 
- Parameters:
- id- the file is related to this symbol id.
- type- this indicates the type of the symbol. A constant
               from- Type.
- role- this describes the role the file plays. For example,
               the file could be a- STUBSRCSfile or a- IMPLSRCSfile. The role strings used
               are determined by the backend.
- dir- the path (relative or absolute) of the directory where
               the file will be created.
- name- the name of the file not including any directory
               information. The complete name of the file should
               be- dir + name.