|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.guix.generator.JavaFileGenerator
public abstract class JavaFileGenerator
Abstract class of all the generator which generate java files
| Nested Class Summary | |
|---|---|
static class |
JavaFileGenerator.Method
Generated methods |
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,JavaFile> |
classes
List of the classes to generate |
protected GuixModelObject |
gmo
GuixModelObject which represents the class to generate |
protected java.util.List<java.lang.String> |
imports
List of the class names to import |
protected JavaFile |
jf
Java file generated |
protected org.apache.commons.logging.Log |
log
log |
| Constructor Summary | |
|---|---|
JavaFileGenerator(GuixModelObject gmo,
java.util.Map<java.lang.String,JavaFile> classes)
Constructor |
|
| Method Summary | |
|---|---|
protected abstract void |
addImports()
Add imports to the generated file |
abstract JavaFile |
generate()
Generates the JavaFile repesnting the class described by the GuixModelObject gmo |
protected java.lang.String |
getMethodName(JavaFileGenerator.Method m)
Get the name of the generated method m |
void |
saveFile(java.io.File out)
Fills and saves the generated file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.commons.logging.Log log
protected java.util.List<java.lang.String> imports
protected java.util.Map<java.lang.String,JavaFile> classes
protected GuixModelObject gmo
protected JavaFile jf
| Constructor Detail |
|---|
public JavaFileGenerator(GuixModelObject gmo,
java.util.Map<java.lang.String,JavaFile> classes)
gmo - GuixModelObject which represents the class to generateclasses - List of the classes to generate| Method Detail |
|---|
public abstract JavaFile generate()
protected abstract void addImports()
public void saveFile(java.io.File out)
out - the file to recordprotected java.lang.String getMethodName(JavaFileGenerator.Method m)
m - the generated method we would like to know the name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||