org.nuiton.guix
Class GuixCompiler

java.lang.Object
  extended by org.nuiton.guix.GuixCompiler

public class GuixCompiler
extends java.lang.Object

Compiles Guix files into model tree

Author:
morin

Field Summary
protected  boolean failed
          Flag to detec if an error occurs while compiling guix file
 
Constructor Summary
GuixCompiler(java.io.File src, GuixLauncher launcher, java.lang.String srcPackage, java.lang.String generationLanguage)
          Creates a new GuixCompiler.
 
Method Summary
 GuixModelObject compile()
          Compiles the guix file
protected  java.lang.StringBuffer compile(org.xmlpull.v1.XmlPullParser xpp, GuixModelObject previousMO, java.lang.String javaDoc)
           
 long getLastModification()
           
 boolean isFailed()
          Return if the compilation failed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

failed

protected boolean failed
Flag to detec if an error occurs while compiling guix file

Constructor Detail

GuixCompiler

public GuixCompiler(java.io.File src,
                    GuixLauncher launcher,
                    java.lang.String srcPackage,
                    java.lang.String generationLanguage)
Creates a new GuixCompiler.

Parameters:
src - location of file to compile
launcher - the launcher of the compiler
Method Detail

compile

public GuixModelObject compile()
Compiles the guix file

Returns:
the root of the model

compile

protected java.lang.StringBuffer compile(org.xmlpull.v1.XmlPullParser xpp,
                                         GuixModelObject previousMO,
                                         java.lang.String javaDoc)
Parameters:
xpp - the parser referencing the tag
previousMO - the GuixModelObject parent of the tag
javaDoc - the comments above the tag, to add to its javaDoc
Returns:
the scripts already discovered while parsing the file

isFailed

public boolean isFailed()
Return if the compilation failed.

Returns:
true if the compilation failed

getLastModification

public long getLastModification()


Copyright © 2009 CodeLutin. All Rights Reserved.