Package org.codehaus.groovy.control

# Interface CompilationUnit.IGroovyClassOperation

All Known Implementing Classes:
  `CompilationUnit.GroovyClassOperation`

Enclosing class:
  CompilationUnit

Functional Interface:
  This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CompilationUnit.IGroovyClassOperation
Performs an operation for each generated `GroovyClass`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `call(GroovyClass groovyClass)`
  Performs the operation for one generated class.
  `default void`
  `doPhaseOperation(CompilationUnit unit)`
  Applies this operation to all generated classes in the compilation unit.

- ## Method Details

  - ### call

    void call(GroovyClass groovyClass) throws CompilationFailedException
    Performs the operation for one generated class.
    Parameters:
      `groovyClass` - the generated class to process
    Throws:
      `CompilationFailedException` - if processing fails

  - ### doPhaseOperation

    default void doPhaseOperation(CompilationUnit unit) throws CompilationFailedException
    Applies this operation to all generated classes in the compilation unit.
    Parameters:
      `unit` - the compilation unit supplying generated classes
    Throws:
      `CompilationFailedException` - if processing fails