gov.llnl.babel.backend
Interface FileListener
- 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.
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.
|
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.
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
.