Package groovy.transform

# Interface CompilationUnitAware

All Known Implementing Classes:
  `BuilderASTTransformation`, `DelegatingCustomizer`, `GrabAnnotationTransformation`, `ImmutableASTTransformation`, `LogASTTransformation`, `MacroTransformation`, `MapConstructorASTTransformation`, `RecordTypeASTTransformation`, `SourceAwareCustomizer`, `StaticCompileTransformation`, `StaticTypesTransformation`, `TraitASTTransformation`, `TupleConstructorASTTransformation`

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `setCompilationUnit(CompilationUnit unit)`
  Sets the compilation unit currently applying this transformation.

- ## Method Details

  - ### setCompilationUnit

    void setCompilationUnit(CompilationUnit unit)
    Sets the compilation unit currently applying this transformation.
    Parameters:
      `unit` - the active compilation unit