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 TypeMethodDescriptionvoidSets the compilation unit currently applying this transformation.
-
Method Details
-
setCompilationUnit
Sets the compilation unit currently applying this transformation.- Parameters:
unit- the active compilation unit
-