Top Classes
[default module]

Package org.codehaus.groovy.transform.trait


Class Summary

Modifier and TypeClass and Description
pack-priv class
NAryOperationRewriter

Rewrites some expressions found in traits so that they are compatible.

pack-priv class
SuperCallTraitTransformer

This transformer is used to transform calls to SomeTrait.super.foo() into the appropriate trait call.

public class
TraitASTTransformation

Handles generation of code for the traits (trait keyword is equivalent to using the @Trait annotation).

public abstract class
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.

pack-priv class
TraitHelpersTuple

A class meant to hold reference to the helper and field helper of a trait.

pack-priv class
TraitReceiverTransformer

This expression transformer is used internally by the trait AST transformation to change the receiver of a message on "this" into a static method call on the trait helper class.

public abstract class
Traits

A collection of utility methods used to deal with traits.