|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.guix.GuixLauncher
public class GuixLauncher
Launch Guix files compilation
| Field Summary | |
|---|---|
protected java.util.List<ClassDescriptor> |
classDescriptors
CLassDescriptor met during the compilation |
protected java.util.List<java.lang.String> |
classNames
original list of classes to compile |
protected java.io.File[] |
files
original list of files to compile |
protected java.util.List<java.lang.String> |
guixFileClassNames
Class names corresponding to the files in the guixFiles list. |
protected java.util.List<java.io.File> |
guixFiles
Files to be treated while compilation. |
protected static org.apache.commons.logging.Log |
log
log |
protected java.util.Map<GuixModelObject,java.lang.Long> |
rootModelObjects
Maps the root GuixModelObjects being compiled to the compiler instance handling the compilation. |
| Constructor Summary | |
|---|---|
GuixLauncher(java.io.File[] files,
java.io.File targetDirectory,
java.io.File srcDir,
java.lang.String mainClass,
java.lang.Class<? extends GuixGenerator> generatorClass,
java.lang.String generationLanguage,
java.lang.String launcherName)
Constructor |
|
| Method Summary | |
|---|---|
void |
addClassName(java.lang.String className)
|
void |
addCompiledFile(java.io.File f)
Ads a file to the compiled files list |
void |
addDependency(GuixModelObject gmo,
ClassDescriptor cd)
|
void |
addRootModelObject(GuixModelObject gmo,
java.lang.Long l)
Adds a root GuixModelObject with its last modification time |
boolean |
compile()
Compiles a set of files. |
java.util.List<java.lang.String> |
getGuixFileClassNames()
|
java.io.File |
getSrcDirectory()
|
java.io.File |
getTargetDirectory()
|
boolean |
isFileAlreadyCompiled(java.io.File f)
Has the file f already been compiled |
ClassDescriptor |
registerClassDescriptor(ClassDescriptor classDescriptor)
Registers a ClassDescriptor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
protected final java.io.File[] files
protected final java.util.List<java.lang.String> classNames
protected java.util.List<java.io.File> guixFiles
protected java.util.List<java.lang.String> guixFileClassNames
protected java.util.Map<GuixModelObject,java.lang.Long> rootModelObjects
protected java.util.List<ClassDescriptor> classDescriptors
| Constructor Detail |
|---|
public GuixLauncher(java.io.File[] files,
java.io.File targetDirectory,
java.io.File srcDir,
java.lang.String mainClass,
java.lang.Class<? extends GuixGenerator> generatorClass,
java.lang.String generationLanguage,
java.lang.String launcherName)
files - the files to compiletargetDirectory - the directory where to save the generated filessrcDir - the directory of the source filesmainClass - main class of the applicationgeneratorClass - class of the generatorgenerationLanguage - the output graphical librarylauncherName - name of the class that will launch the application| Method Detail |
|---|
public java.io.File getSrcDirectory()
public java.io.File getTargetDirectory()
public java.util.List<java.lang.String> getGuixFileClassNames()
public boolean compile()
true if compilation succeeds,
false otherwisepublic ClassDescriptor registerClassDescriptor(ClassDescriptor classDescriptor)
classDescriptor - the ClassDescripor to register
public void addRootModelObject(GuixModelObject gmo,
java.lang.Long l)
gmo - the root GuixModelObject to addl - its last modification timepublic void addClassName(java.lang.String className)
public void addCompiledFile(java.io.File f)
f - the file to addpublic boolean isFileAlreadyCompiled(java.io.File f)
f - the file we'd like to know if it has already been compiled
public void addDependency(GuixModelObject gmo,
ClassDescriptor cd)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||