Package jaxx.compiler.tasks
Class JAXXEngineTask
java.lang.Object
jaxx.compiler.tasks.JAXXEngineTask
- Direct Known Subclasses:
CompileFirstPassTask,CompileSecondPassTask,FinalizeTask,GenerateConstructorsTask,GenerateMissingRulesTask,GenerateTask,InitTask,ProfileTask,StyleSheetTask
public abstract class JAXXEngineTask
extends java.lang.Object
Base class to implement a task to be launched by a
JAXXEngine.
The perform(JAXXEngine) method contains the logic of the task.- Since:
- 2.0.2
- Author:
- Tony Chemit - chemit@codelutin.com
-
Constructor Summary
Constructors Constructor Description JAXXEngineTask(java.lang.String name) -
Method Summary
Modifier and Type Method Description protected voidaddEndProfileTime(JAXXEngine engine, JAXXCompiler compiler)protected voidaddStartProfileTime(JAXXEngine engine, JAXXCompiler compiler)protected voidcheckAllFilesCompiled(JAXXEngine engine)Checks the engine does not have any more files to discover.java.lang.StringgetName()abstract booleanperform(JAXXEngine engine)Performs the task on the givenengine.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
JAXXEngineTask
public JAXXEngineTask(java.lang.String name)
-
-
Method Details
-
perform
Performs the task on the givenengine.- Parameters:
engine- the engine to use- Returns:
falseif task failed (with no exception),trueotherwise.- Throws:
java.lang.Exception- if any error
-
getName
public java.lang.String getName() -
checkAllFilesCompiled
Checks the engine does not have any more files to discover.- Parameters:
engine- the engine to test- Throws:
java.lang.IllegalStateException- if there is still some files to discover.
-
addStartProfileTime
-
addEndProfileTime
-