public class ASTTransformationsContext
extends Object
Stores state information about global AST transformations applied to a compilation unit.
| Modifiers | Name | Description |
|---|---|---|
protected CompilationUnit |
compilationUnit |
Compilation unit that receives the transformations. |
protected Set<String> |
globalTransformNames |
Names of the global transformations applied so far. |
protected GroovyClassLoader |
transformLoader |
Class loader used to load global and local AST transformations. |
| Constructor and description |
|---|
ASTTransformationsContext(CompilationUnit compilationUnit, GroovyClassLoader transformLoader)Creates a context for tracking AST transformations during compilation. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public CompilationUnit |
getCompilationUnit()Returns the compilation unit associated with this context. |
|
public Set<String> |
getGlobalTransformNames()Returns the names of applied global AST transformations. |
|
public GroovyClassLoader |
getTransformLoader()Returns the class loader used to load transformations. |
Compilation unit that receives the transformations.
Names of the global transformations applied so far.
Class loader used to load global and local AST transformations.
Creates a context for tracking AST transformations during compilation.
compilationUnit - the compilation unit being transformedtransformLoader - the class loader used for transformation classesReturns the compilation unit associated with this context.
Returns the names of applied global AST transformations.
Returns the class loader used to load transformations.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.