|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.llnl.babel.backend.python.SetupGenerator
public class SetupGenerator
This class writes a setup.py file to build all the
Python extension modules and implementation code.
| Constructor Summary | |
|---|---|
SetupGenerator()
|
|
| Method Summary | |
|---|---|
void |
createAll()
Generate the setup.py to build the Python extension modules. |
java.util.Set |
getLanguages()
Return the set of languages that this build generator serves. |
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 |
setContext(Context context)
Routine to notify extensions of the context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetupGenerator()
| Method Detail |
|---|
public void createAll()
throws java.io.IOException
createAll in interface BuildGeneratorjava.io.IOException - this is a exception that contains
all the I/O exceptions that occurred during file generation.
public void newFile(SymbolID id,
int type,
java.lang.String role,
java.lang.String dir,
java.lang.String name)
FileManager
for each new file it creates. This object caches the information it
needs to setup.py creation later.
newFile in interface FileListenerid - the file is related to this symbol ID.type - indicates the type of the symbol ID (one of the
constants 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.public java.util.Set getLanguages()
BuildGenerator
getLanguages in interface BuildGeneratorSet of strings. Each string in the set
represents a language supported by the build generator.public void setContext(Context context)
ContextAware
setContext in interface ContextAware
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||