Package: org.codehaus.groovy.control

## [Java] Interface CompilationUnit.IGroovyClassOperation

- org.codehaus.groovy.control.CompilationUnit.PhaseOperation

- All Superinterfaces:
    CompilationUnit.PhaseOperation

      @FunctionalInterface
      public interface CompilationUnit.IGroovyClassOperation
      extends CompilationUnit.PhaseOperation

  Performs an operation for each generated GroovyClass.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `call(GroovyClass groovyClass)` Performs the operation for one generated class.
    `` | `public void` | `doPhaseOperation(CompilationUnit unit)` Applies this operation to all generated classes in the compilation unit.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `interface CompilationUnit.PhaseOperation` | `doPhaseOperation`

- - ### Method Detail

    - #### public void call(GroovyClass groovyClass)

      Performs the operation for one generated class.

      throws:
        CompilationFailedException if processing fails
      Parameters:
        `groovyClass` - the generated class to process

    - #### public void doPhaseOperation(CompilationUnit unit)

      Applies this operation to all generated classes in the compilation unit.

      throws:
        CompilationFailedException if processing fails
      Parameters:
        `unit` - the compilation unit supplying generated classes