| Modifier and Type | Field and Description |
|---|---|
| protected GroovyClassLoader | classLoader
The ClassLoader to use during processing |
| protected CompilerConfiguration | configuration
Configuration and other settings that control processing |
| protected ErrorCollector | errorCollector
a helper to share errors and report them |
| protected int | phase
The current phase |
| protected boolean | phaseComplete
True if phase is finished |
| Access | Constructor and Description |
|---|---|
| public | ProcessingUnit(final CompilerConfiguration configuration, final GroovyClassLoader classLoader, final ErrorCollector errorCollector)
Initializes the ProcessingUnit to the empty state. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public GroovyClassLoader | |
| public CompilerConfiguration | |
| public ErrorCollector | getErrorCollector()
Errors found during the compilation should be reported through the ErrorCollector. |
| public int | |
| public String | |
| public void | gotoPhase(int phase)
Wraps up any pending operations for the current phase and switches to the given phase. |
| public boolean | |
| public void | |
| public void | |
| public final void | setConfiguration(CompilerConfiguration configuration)
Sets the CompilerConfiguration for this ProcessingUnit. |
| classLoader | back to summary |
|---|---|
| protected GroovyClassLoader classLoader The ClassLoader to use during processing | |
| configuration | back to summary |
|---|---|
| protected CompilerConfiguration configuration Configuration and other settings that control processing | |
| errorCollector | back to summary |
|---|---|
| protected ErrorCollector errorCollector a helper to share errors and report them | |
| phase | back to summary |
|---|---|
| protected int phase The current phase | |
| phaseComplete | back to summary |
|---|---|
| protected boolean phaseComplete True if phase is finished | |
| ProcessingUnit | back to summary |
|---|---|
| public ProcessingUnit(final CompilerConfiguration configuration, final GroovyClassLoader classLoader, final ErrorCollector errorCollector) Initializes the ProcessingUnit to the empty state. | |
| completePhase | back to summary |
|---|---|
| public void completePhase() throws CompilationFailedException Marks the current phase complete and processes any errors. | |
| configure | back to summary |
|---|---|
| public void configure(CompilerConfiguration configuration) Reconfigures the ProcessingUnit. | |
| getClassLoader | back to summary |
|---|---|
| public GroovyClassLoader getClassLoader() Returns the class loader in use by this ProcessingUnit. | |
| getConfiguration | back to summary |
|---|---|
| public CompilerConfiguration getConfiguration() Gets the CompilerConfiguration for this ProcessingUnit. | |
| getErrorCollector | back to summary |
|---|---|
| public ErrorCollector getErrorCollector() Errors found during the compilation should be reported through the ErrorCollector. | |
| getPhase | back to summary |
|---|---|
| public int getPhase() Returns the current phase. | |
| getPhaseDescription | back to summary |
|---|---|
| public String getPhaseDescription() Returns the description for the current phase. | |
| gotoPhase | back to summary |
|---|---|
| public void gotoPhase(int phase) throws CompilationFailedException Wraps up any pending operations for the current phase and switches to the given phase. | |
| isPhaseComplete | back to summary |
|---|---|
| public boolean isPhaseComplete() | |
| nextPhase | back to summary |
|---|---|
| public void nextPhase() throws CompilationFailedException A synonym for | |
| setClassLoader | back to summary |
|---|---|
| public void setClassLoader(final GroovyClassLoader loader) Sets the class loader for use by this ProcessingUnit. | |
| setConfiguration | back to summary |
|---|---|
| public final void setConfiguration(CompilerConfiguration configuration) Sets the CompilerConfiguration for this ProcessingUnit. | |