# Package org.codehaus.groovy.transform.trait

## Package org.codehaus.groovy.transform.trait Description

Trait transformation. Implements trait behavior through bytecode generation.

- Class Summary
  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 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.

- Annotation Type Summary
  Annotation Type | Description
  --- | ---
  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.