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 void addEndProfileTime​(JAXXEngine engine, JAXXCompiler compiler)  
    protected void addStartProfileTime​(JAXXEngine engine, JAXXCompiler compiler)  
    protected void checkAllFilesCompiled​(JAXXEngine engine)
    Checks the engine does not have any more files to discover.
    java.lang.String getName()  
    abstract boolean perform​(JAXXEngine engine)
    Performs the task on the given engine.

    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

      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)