|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.babel.backend.CodeGenerationFactory
This class stores and serves up instances CodeGenerator based on the string name of the code that the user wishes to generate. Classes derived from CodeGenerator will register themselves with this class (usually as part of a static initialization block). If a match based on the string name is not available, this class will try to dynamically load an instance based on some simple naming rules.
CodeGenerator
Method Summary | |
BuildGenerator |
getBuildGenerator(java.lang.String language)
Get the build generator appropriate for this language. |
CodeGenerator |
getCodeGenerator(java.lang.String language,
java.lang.String mode)
Get a registered codeGenerator from the factory. |
static CodeGenerationFactory |
getInstance()
Return the singleton instance of the class. |
void |
printRegisteredGenerators(java.io.PrintStream out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static CodeGenerationFactory getInstance()
CodeGenerationFactory
has not yet been created,
then it will be created by this call.
public BuildGenerator getBuildGenerator(java.lang.String language)
public CodeGenerator getCodeGenerator(java.lang.String language, java.lang.String mode)
language
- String name of the languagemode
- Usually one of "stub", "skel", "ior", or "text"
public void printRegisteredGenerators(java.io.PrintStream out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |