Package: org.codehaus.groovy.transform.sc

## [Java] Class StaticCompileTransformation

- org.codehaus.groovy.transform.sc.StaticCompileTransformation

-     public class StaticCompileTransformation
      extends StaticTypesTransformation

  Handles the implementation of the CompileStatic transformation.

- - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class StaticTypesTransformation` | `STATIC_ERROR_PREFIX, compilationUnit`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `protected StaticTypeCheckingVisitor` | `newVisitor(SourceUnit unit, ClassNode node)` Creates the type checking visitor used by this transformation.
    `` | `public void` | `visit(ASTNode[] nodes, SourceUnit source)` Applies static type checking and rewrites the annotated class or method for static compilation.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class StaticTypesTransformation` | `addTypeCheckingExtensions, newVisitor, setCompilationUnit, visit`

- - ### Method Detail

    - #### protected StaticTypeCheckingVisitor newVisitor(SourceUnit unit, ClassNode node)

      Creates the type checking visitor used by this transformation.

      Parameters:
        `unit` - the source unit being processed
        `node` - the class node that anchors the visit
      Returns:
        the static compilation visitor for the class

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

      Applies static type checking and rewrites the annotated class or method for static compilation.

      Parameters:
        `nodes` - the annotation node and the annotated target node
        `source` - the source unit being transformed