@GroovyASTTransformation(phase=CompilePhase.SEMANTIC_ANALYSIS)
class ASTTestTransformation
extends Object
implements ASTTransformation, CompilationUnitAware
Implements ASTTest by scheduling the supplied test closure across compilation phases.
| Type | Name and description |
|---|---|
CompilationUnit |
compilationUnitCompilation unit that owns the current transformation. |
| Constructor and description |
|---|
ASTTestTransformation() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
visit(ASTNode[] nodes, SourceUnit source)Validates the annotation and schedules execution of its AST assertions. |
Compilation unit that owns the current transformation.
Validates the annotation and schedules execution of its AST assertions.
nodes - the annotation node and annotated AST nodesource - the source unit containing the annotationCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.