Package: org.codehaus.groovy.control

## [Java] Interface CompilationUnit.ProgressCallback

-     @FunctionalInterface
      public interface CompilationUnit.ProgressCallback

  A callback interface you can use to get a callback after every unit of the compile process. You will be called-back with a ProcessingUnit and a phase indicator. Use setProgressCallback() before running compile() to set your callback.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `call(ProcessingUnit context, int phase)` Called after a compilation phase finishes for a processing unit.

- - ### Method Detail

    - #### public void call(ProcessingUnit context, int phase)

      Called after a compilation phase finishes for a processing unit.

      throws:
        CompilationFailedException if callback processing fails
      Parameters:
        `context` - the processing unit that advanced
        `phase` - the phase that just completed