Package: org.codehaus.groovy.transform

## [Java] Class ParallelASTTransformation

- org.codehaus.groovy.transform.ParallelASTTransformation

- All Implemented Interfaces and Traits:
    ASTTransformation

      @Incubating
      @GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS)
      public class ParallelASTTransformation
      extends Object
      implements ASTTransformation

  Local AST transform for Parallel: rewrites annotated `for-in` loops into `collection.eachParallel { item -> body` }.

  The transform renames references to the loop variable in the body to a synthetic name (e.g. `$parallel_item`) to avoid scope conflicts with the for loop's own variable declaration, then re-resolves variable scopes to ensure the closure captures enclosing variables correctly.

  Since:
    6.0.0

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public void` | `visit(ASTNode[] nodes, SourceUnit source)`

  - ### Inherited Methods Summary

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

- - ### Method Detail

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