gov.llnl.babel.backend
public class Dependencies extends java.lang.Object implements FileListener
Constructor and Description |
---|
Dependencies(Context context) |
Modifier and Type | Method and Description |
---|---|
void |
addInput(java.lang.String input) |
void |
addTargetFile(java.lang.String dirName,
java.lang.String fileName) |
void |
dumpData() |
java.util.HashMap |
getDirectoryData(java.lang.String dirName) |
void |
newFile(SymbolID id,
int type,
java.lang.String role,
java.lang.String dir,
java.lang.String name)
This method is called by the
FileManager
for each new file it creates. |
void |
recordDependency(Symbol symbol) |
void |
recordDependency(SymbolID id)
Method for recording makefile dependencies.
|
void |
setOutputDir(java.lang.String outdir) |
public Dependencies(Context context)
public void setOutputDir(java.lang.String outdir)
public void addTargetFile(java.lang.String dirName, java.lang.String fileName)
public void addInput(java.lang.String input)
public java.util.HashMap getDirectoryData(java.lang.String dirName)
public void dumpData()
public void recordDependency(SymbolID id)
public void recordDependency(Symbol symbol)
public void newFile(SymbolID id, int type, java.lang.String role, java.lang.String dir, java.lang.String name)
FileListener
FileManager
for each new file it creates.newFile
in interface FileListener
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
.