Package: org.codehaus.groovy.transform

## [Groovy] Class ASTTestTransformation

- org.codehaus.groovy.transform.ASTTestTransformation

- All Implemented Interfaces and Traits:
    ASTTransformation, CompilationUnitAware

      @GroovyASTTransformation(phase=CompilePhase.SEMANTIC_ANALYSIS)
      class ASTTestTransformation
      extends Object
      implements ASTTransformation, CompilationUnitAware

  Implements ASTTest by scheduling the supplied test closure across compilation phases.

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `CompilationUnit` | `compilationUnit` Compilation unit that owns the current transformation.

  - ### Constructor Summary

    Constructors
    Constructor and description
    `ASTTestTransformation()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `void` | `visit(ASTNode[] nodes, SourceUnit source)` Validates the annotation and schedules execution of its AST assertions.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Property Detail

    - #### CompilationUnit compilationUnit

      Compilation unit that owns the current transformation.

  - ### Constructor Detail

    - #### ASTTestTransformation()

  - ### Method Detail

    - #### @Override
      void visit(ASTNode[] nodes, SourceUnit source)

      Validates the annotation and schedules execution of its AST assertions.

      Parameters:
        `nodes` - the annotation node and annotated AST node
        `source` - the source unit containing the annotation