Package: org.codehaus.groovy.control

## [Java] Enum CompilePhase

- org.codehaus.groovy.control.CompilePhase

-     public enum CompilePhase
      extends Enum

  The phases of the GroovyCompiler. This is an enum facade on top of the Phases object. In general, prefer using this object over Phases.

- - ### Enum Constants Summary

    Enum constants classes
    Enum constant | Description
    --- | ---
    `CANONICALIZATION` | Complete building the AST
    `CLASS_GENERATION` | creates the binary output in memory
    `CONVERSION` | An abstract syntax tree (AST) is created from token trees
    `FINALIZATION` | Perform any last cleanup
    `INITIALIZATION` | source files are opened and environment configured
    `INSTRUCTION_SELECTION` | instruction set is chosen, for example java5 or pre java5
    `OUTPUT` | write the binary output to the file system
    `PARSING` | the grammar is used to to produce tree of tokens representing the source code
    `SEMANTIC_ANALYSIS` | Performs consistency and validity checks that the grammar can't check for, and resolves classes

  - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static CompilePhase[]` | `phases` | The phases as an array, with a null entry.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public static CompilePhase` | `fromPhaseNumber(int phaseNumber)` Returns the CompilePhase for the given integer phase number.
    `` | `public int` | `getPhaseNumber()` Returns the underlieng integer Phase number.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Enum` | `name, equals, toString, hashCode, compareTo, compareTo, valueOf, describeConstable, getDeclaringClass, ordinal, wait, wait, wait, getClass, notify, notifyAll`

- - ### Enum Constant Detail

    - #### CompilePhase CANONICALIZATION

      Complete building the AST

    - #### CompilePhase CLASS_GENERATION

      creates the binary output in memory

    - #### CompilePhase CONVERSION

      An abstract syntax tree (AST) is created from token trees

    - #### CompilePhase FINALIZATION

      Perform any last cleanup

    - #### CompilePhase INITIALIZATION

      source files are opened and environment configured

    - #### CompilePhase INSTRUCTION_SELECTION

      instruction set is chosen, for example java5 or pre java5

    - #### CompilePhase OUTPUT

      write the binary output to the file system

    - #### CompilePhase PARSING

      the grammar is used to to produce tree of tokens representing the source code

    - #### CompilePhase SEMANTIC_ANALYSIS

      Performs consistency and validity checks that the grammar can't check for, and resolves classes

  - ### Field Detail

    - #### public static CompilePhase[] phases

      The phases as an array, with a null entry.

  - ### Method Detail

    - #### public static CompilePhase fromPhaseNumber(int phaseNumber)

      Returns the CompilePhase for the given integer phase number.

      Parameters:
        `phaseNumber` - the phase number
      Returns:
        the CompilePhase or null if not found

    - #### public int getPhaseNumber()

      Returns the underlieng integer Phase number.