Package org.nuiton.jaxx.compiler.tasks
Class JAXXEngineTask
- java.lang.Object
-
- org.nuiton.jaxx.compiler.tasks.JAXXEngineTask
-
- Direct Known Subclasses:
CompileFirstPassTask,CompileSecondPassTask,FinalizeTask,GenerateConstructorsTask,GenerateMissingRulesTask,GenerateTask,InitTask,ProfileTask,StyleSheetTask
public abstract class JAXXEngineTask extends Object
Base class to implement a task to be launched by aJAXXEngine. Theperform(JAXXEngine)method contains the logic of the task.- Since:
- 2.0.2
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Constructor Summary
Constructors Constructor Description JAXXEngineTask(String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods 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.StringgetName()abstract booleanperform(JAXXEngine engine)Performs the task on the givenengine.
-
-
-
Constructor Detail
-
JAXXEngineTask
public JAXXEngineTask(String name)
-
-
Method Detail
-
perform
public abstract boolean perform(JAXXEngine engine) throws Exception
Performs the task on the givenengine.- Parameters:
engine- the engine to use- Returns:
falseif task failed (with no exception),trueotherwise.- Throws:
Exception- if any error
-
getName
public String getName()
-
checkAllFilesCompiled
protected void checkAllFilesCompiled(JAXXEngine engine) throws IllegalStateException
Checks the engine does not have any more files to discover.- Parameters:
engine- the engine to test- Throws:
IllegalStateException- if there is still some files to discover.
-
addStartProfileTime
protected void addStartProfileTime(JAXXEngine engine, JAXXCompiler compiler)
-
addEndProfileTime
protected void addEndProfileTime(JAXXEngine engine, JAXXCompiler compiler)
-
-