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 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 |
Modifiers | Name | Description |
---|---|---|
static CompilePhase[] |
phases |
The phases as an array, with a null entry. |
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. |
Complete building the AST
creates the binary output in memory
An abstract syntax tree (AST) is created from token trees
Perform any last cleanup
source files are opened and environment configured
instruction set is chosen, for example java5 or pre java5
write the binary output to the file system
the grammar is used to to produce tree of tokens representing the source code
Performs consistency and validity checks that the grammar can't check for, and resolves classes
The phases as an array, with a null entry.
Returns the CompilePhase for the given integer phase number.
phaseNumber
- the phase numberReturns the underlieng integer Phase number.
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.