# Package org.codehaus.groovy.transform.trait

package org.codehaus.groovy.transform.trait
Trait transformation. Implements trait behavior through bytecode generation.

- Related Packages
  Package
  Description
  org.codehaus.groovy.transform
  AST transformation framework.
  org.codehaus.groovy.transform.sc
  Static compilation transformation.
  org.codehaus.groovy.transform.stc
  Static type checking transformation.
  org.codehaus.groovy.transform.tailrec
  Tail recursion optimization.
- Class
  Description
  TraitASTTransformation
  Handles generation of code for the traits (trait keyword is equivalent to using the @Trait annotation).
  TraitComposer
  This class contains a static utility method `TraitComposer.doExtendTraits(org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.control.SourceUnit, org.codehaus.groovy.control.CompilationUnit)` aimed at generating code for a classnode implementing a trait.
  Traits
  A collection of utility methods used to deal with traits.
  Traits.Implemented
  Internal annotation used to indicate which methods in a trait interface have a default implementation.
  Traits.TraitBridge
  Internal annotation used to indicate that a method is a bridge method to a trait default implementation.