jaxx.compiler
Enum JAXXEngine.LifeCycle

java.lang.Object
  extended by java.lang.Enum<JAXXEngine.LifeCycle>
      extended by jaxx.compiler.JAXXEngine.LifeCycle
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JAXXEngine.LifeCycle>
Enclosing class:
JAXXEngine

protected static enum JAXXEngine.LifeCycle
extends java.lang.Enum<JAXXEngine.LifeCycle>

Different passes of the engine. Each pass defines the run(JAXXEngine) method which implements the logic of the pass.


Enum Constant Summary
compile_first_pass
          first pass of compilation
compile_second_pass
          second pass of compilation
finalize_compiler
          finalize compiler
generate_pass
          generate java file
init
          state before compilation
profile_pass
          display profile results
stylesheet_pass
          applying stylesheet
 
Method Summary
abstract  boolean run(JAXXEngine engine)
          Run the pass.
static JAXXEngine.LifeCycle valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JAXXEngine.LifeCycle[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

init

public static final JAXXEngine.LifeCycle init
state before compilation


compile_first_pass

public static final JAXXEngine.LifeCycle compile_first_pass
first pass of compilation


compile_second_pass

public static final JAXXEngine.LifeCycle compile_second_pass
second pass of compilation


stylesheet_pass

public static final JAXXEngine.LifeCycle stylesheet_pass
applying stylesheet


finalize_compiler

public static final JAXXEngine.LifeCycle finalize_compiler
finalize compiler


generate_pass

public static final JAXXEngine.LifeCycle generate_pass
generate java file


profile_pass

public static final JAXXEngine.LifeCycle profile_pass
display profile results

Method Detail

values

public static JAXXEngine.LifeCycle[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (JAXXEngine.LifeCycle c : JAXXEngine.LifeCycle.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static JAXXEngine.LifeCycle valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

run

public abstract boolean run(JAXXEngine engine)
                     throws java.lang.Exception
Run the pass.

Parameters:
engine - the engine to use
Returns:
true if pass was ok, false otherwise
Throws:
java.lang.Exception - if any pb


Copyright © 2008-2010 CodeLutin. All Rights Reserved.