Top Description Fields Constructors Methods
org.codehaus.groovy.control

public final Enum CompilePhase

extends Enum<CompilePhase>
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
public static final CompilePhase
CANONICALIZATION

Complete building the AST

public static final CompilePhase
CLASS_GENERATION

creates the binary output in memory

public static final CompilePhase
CONVERSION

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

public static final CompilePhase
FINALIZATION

Perform any last cleanup

public static final CompilePhase
INITIALIZATION

source files are opened and environment configured

public static final CompilePhase
INSTRUCTION_SELECTION

instruction set is chosen, for example java5 or pre java5

public static final CompilePhase
OUTPUT

write the binary output to the file system

public static final CompilePhase
PARSING

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

pack-priv int
public static CompilePhase[]
phases

The phases as an array, with a null entry.

public static final CompilePhase
SEMANTIC_ANALYSIS

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

Constructor Summary

AccessConstructor and Description
private
CompilePhase(int phaseNumber)

Method Summary

Modifier and TypeMethod and Description
public static CompilePhase

Returns:

the CompilePhase or null if not found
fromPhaseNumber
(int
the phase number
phaseNumber
)

Returns the CompilePhase for the given integer phase number.

public int
getPhaseNumber()

Returns the underlieng integer Phase number.

public static CompilePhase
public static CompilePhase[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CANONICALIZATIONback to summary
public static final CompilePhase CANONICALIZATION

Complete building the AST

CLASS_GENERATIONback to summary
public static final CompilePhase CLASS_GENERATION

creates the binary output in memory

CONVERSIONback to summary
public static final CompilePhase CONVERSION

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

FINALIZATIONback to summary
public static final CompilePhase FINALIZATION

Perform any last cleanup

INITIALIZATIONback to summary
public static final CompilePhase INITIALIZATION

source files are opened and environment configured

INSTRUCTION_SELECTIONback to summary
public static final CompilePhase INSTRUCTION_SELECTION

instruction set is chosen, for example java5 or pre java5

OUTPUTback to summary
public static final CompilePhase OUTPUT

write the binary output to the file system

PARSINGback to summary
public static final CompilePhase PARSING

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

phaseNumberback to summary
pack-priv int phaseNumber
phasesback to summary
public static CompilePhase[] phases

The phases as an array, with a null entry.

SEMANTIC_ANALYSISback to summary
public static final CompilePhase SEMANTIC_ANALYSIS

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

Constructor Detail

CompilePhaseback to summary
private CompilePhase(int phaseNumber)

Method Detail

fromPhaseNumberback to summary
public static CompilePhase fromPhaseNumber(int phaseNumber)

Returns the CompilePhase for the given integer phase number.

Parameters
phaseNumber:int

the phase number

Returns:CompilePhase

the CompilePhase or null if not found

getPhaseNumberback to summary
public int getPhaseNumber()

Returns the underlieng integer Phase number.

valueOfback to summary
public static CompilePhase valueOf(String name)
valuesback to summary
public static CompilePhase[] values()