jaxx.compiler.tasks
Class JAXXEngineTask
java.lang.Object
jaxx.compiler.tasks.JAXXEngineTask
- Direct Known Subclasses:
- CompileFirstPassTask, CompileSecondPassTask, FinalizeTask, 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:
- tchemit
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JAXXEngineTask
public JAXXEngineTask(java.lang.String name)
perform
public abstract boolean perform(JAXXEngine engine)
throws java.lang.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:
java.lang.Exception - if any error
getName
public java.lang.String getName()
checkAllFilesCompiled
protected void checkAllFilesCompiled(JAXXEngine engine)
throws java.lang.IllegalStateException
- 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
protected void addStartProfileTime(JAXXEngine engine,
JAXXCompiler compiler)
addEndProfileTime
protected void addEndProfileTime(JAXXEngine engine,
JAXXCompiler compiler)
Copyright © 2008-2010 CodeLutin. All Rights Reserved.