| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<CompilePhase>
org.codehaus.groovy.control.CompilePhase
public enum CompilePhase extends Enum<CompilePhase>
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 and Description | 
|---|
| CANONICALIZATIONComplete building the AST | 
| CLASS_GENERATIONcreates the binary output in memory | 
| CONVERSIONAn abstract syntax tree (AST) is created from token trees | 
| FINALIZATIONPerform any last cleanup | 
| INITIALIZATIONsource files are opened and environment configured | 
| INSTRUCTION_SELECTIONinstruction set is chosen, for example java5 or pre java5 | 
| OUTPUTwrite the binary output to the file system | 
| PARSINGthe grammar is used to to produce tree of tokens representing the source code | 
| SEMANTIC_ANALYSISPerforms consistency and validity checks that the grammar can't check for, and resolves classes | 
| Modifier and Type | Field and Description | 
|---|---|
| static CompilePhase[] | phasesThe phases as an array, with a null entry. | 
| Modifier and Type | Method and Description | 
|---|---|
|  int | getPhaseNumber()Returns the underlieng integer Phase number. | 
| static CompilePhase | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static CompilePhase[] | 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 | 
|---|
public static final CompilePhase INITIALIZATION
public static final CompilePhase PARSING
public static final CompilePhase CONVERSION
public static final CompilePhase SEMANTIC_ANALYSIS
public static final CompilePhase CANONICALIZATION
public static final CompilePhase INSTRUCTION_SELECTION
public static final CompilePhase CLASS_GENERATION
public static final CompilePhase OUTPUT
public static final CompilePhase FINALIZATION
| Field Detail | 
|---|
public static CompilePhase[] phases
| Method Detail | 
|---|
public static CompilePhase[] values()
for (CompilePhase c : CompilePhase.values()) System.out.println(c);
public static CompilePhase valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic int getPhaseNumber()
| 
 | Copyright © 2003-2010 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||