jaxx.compiler.tasks
Class JAXXEngineTask
java.lang.Object
jaxx.compiler.tasks.JAXXEngineTask
- Direct Known Subclasses:
- CompileFirstPassTask, CompileSecondPassTask, FinalizeTask, GenerateConstructorsTask, GenerateTask, InitTask, ProfileTask, StyleSheetTask
public abstract class JAXXEngineTask
- extends 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:
- tchemit
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXXEngineTask
public JAXXEngineTask(String name)
perform
public abstract boolean perform(JAXXEngine engine)
throws Exception
- Performs the task on the given
engine.
- Parameters:
engine - the engine to use
- Returns:
false if task failed (with no exception), true otherwise.
- 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)
Copyright © 2008-2011 CodeLutin. All Rights Reserved.