gov.llnl.babel.backend

Interface FileListener

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, String role, String dir, String name)
This method is called by the FileManager for each new file it creates.

Method Details

newFile

public void newFile(SymbolID id,
                    int type,
                    String role,
                    String dir,
                    String name)
This method is called by the FileManager for 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 STUBSRCS file or a IMPLSRCS file. 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.