Package org.codehaus.groovy.control
Enum CompilePhase
java.lang.Object
java.lang.Enum<CompilePhase>
org.codehaus.groovy.control.CompilePhase
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<CompilePhase>,- java.lang.constant.Constable
public enum CompilePhase extends java.lang.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.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.Enumjava.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
- 
Enum Constant SummaryEnum Constants Enum Constant Description CANONICALIZATIONComplete building the ASTCLASS_GENERATIONcreates the binary output in memoryCONVERSIONAn abstract syntax tree (AST) is created from token treesFINALIZATIONPerform any last cleanupINITIALIZATIONsource files are opened and environment configuredINSTRUCTION_SELECTIONinstruction set is chosen, for example java5 or pre java5OUTPUTwrite the binary output to the file systemPARSINGthe grammar is used to to produce tree of tokens representing the source codeSEMANTIC_ANALYSISPerforms consistency and validity checks that the grammar can't check for, and resolves classes
- 
Field SummaryFields Modifier and Type Field Description static CompilePhase[]phasesThe phases as an array, with a null entry.
- 
Method SummaryModifier and Type Method Description static CompilePhasefromPhaseNumber(int phaseNumber)Returns the CompilePhase for the given integer phase number.intgetPhaseNumber()Returns the underlieng integer Phase number.static CompilePhasevalueOf(java.lang.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.Enumclone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from class java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait
- 
Enum Constant Details- 
INITIALIZATIONsource files are opened and environment configured
- 
PARSINGthe grammar is used to to produce tree of tokens representing the source code
- 
CONVERSIONAn abstract syntax tree (AST) is created from token trees
- 
SEMANTIC_ANALYSISPerforms consistency and validity checks that the grammar can't check for, and resolves classes
- 
CANONICALIZATIONComplete building the AST
- 
INSTRUCTION_SELECTIONinstruction set is chosen, for example java5 or pre java5
- 
CLASS_GENERATIONcreates the binary output in memory
- 
OUTPUTwrite the binary output to the file system
- 
FINALIZATIONPerform any last cleanup
 
- 
- 
Field Details- 
phasesThe phases as an array, with a null entry.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns 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
 
- 
getPhaseNumberpublic int getPhaseNumber()Returns the underlieng integer Phase number.
- 
fromPhaseNumberReturns the CompilePhase for the given integer phase number.- Parameters:
- phaseNumber- the phase number
- Returns:
- the CompilePhase or null if not found
 
 
-