Package jaxx.compiler.tasks
Class GenerateTask
java.lang.Object
jaxx.compiler.tasks.JAXXEngineTask
jaxx.compiler.tasks.GenerateTask
public class GenerateTask extends JAXXEngineTask
Last task to generate java files.
- Since:
- 2.0.2
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTASK_NAMETask name -
Constructor Summary
Constructors Constructor Description GenerateTask() -
Method Summary
Modifier and Type Method Description voidconsumeCompiler(JAXXCompiler compiler, JavaFileGenerator generator)protected voidoptimizeConstructorParameters(JavaFile f, org.nuiton.eugene.java.extension.ImportsManager importsManager)java.util.List<java.lang.String>optimizeImports(JavaFile f, java.lang.String packageName)booleanperform(JAXXEngine engine)Performs the task on the givenengine.Methods inherited from class jaxx.compiler.tasks.JAXXEngineTask
addEndProfileTime, addStartProfileTime, checkAllFilesCompiled, getNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
TASK_NAME
public static final java.lang.String TASK_NAMETask name- See Also:
- Constant Field Values
-
-
Constructor Details
-
GenerateTask
public GenerateTask()
-
-
Method Details
-
perform
Description copied from class:JAXXEngineTaskPerforms the task on the givenengine.- Specified by:
performin classJAXXEngineTask- Parameters:
engine- the engine to use- Returns:
falseif task failed (with no exception),trueotherwise.- Throws:
java.lang.Exception- if any error
-
consumeCompiler
public void consumeCompiler(JAXXCompiler compiler, JavaFileGenerator generator) throws java.io.IOException- Throws:
java.io.IOException
-
optimizeImports
-
optimizeConstructorParameters
protected void optimizeConstructorParameters(JavaFile f, org.nuiton.eugene.java.extension.ImportsManager importsManager)
-