Overview | Package | Class | Deprecated | Index | Help
| Groovy 1.7.0
| FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.codehaus.groovy.transform
Annotation Type GroovyASTTransformation

    java.lang.Object
      org.codehaus.groovy.transform.GroovyASTTransformation

    @Retention(RetentionPolicy.RUNTIME)
    @Target(ElementType.TYPE)
    @interface GroovyASTTransformation

This is an annotaton on a class, currently just ASTTransformation. This provides information about how and when to apply the transformation, such as what phase it should be applied in. The allowed phase is a function of how the transformation is introduced into the compile process. If the transform is automatically added via a marker annotation only the SEMANTIC_ANALYSIS and latter phases are legal for the phase(). This is because the annotations are not inspected until after the classes are all resolved. Also, only annotation types present during the SEMANTIC_ANALYSIS phase will be handled. Transformations adding other annotations that are transformable will have those new annotations only considered in latter phases, and only if the type was present in the source unit during SEMANTIC_ANALYSIS.

author:
  Danno Ferrin (shemnon)

Optional Element Summary
`null` | `phase`

Method Summary

Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll

Element Detail

### phase

    CompilePhase phase

  default:
    CompilePhase.CANONICALIZATION

Copyright © 2003-2009 The Codehaus. All rights reserved.