Package: groovy.transform

## [Java] Interface CompilationUnitAware

-     public interface CompilationUnitAware

  This interface is for AST transformations which must be aware of the compilation unit where they are applied.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `setCompilationUnit(CompilationUnit unit)` Sets the compilation unit currently applying this transformation.

- - ### Method Detail

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

      Sets the compilation unit currently applying this transformation.

      Parameters:
        `unit` - the active compilation unit