public abstract class TraitComposer extends Object
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.Modifier and Type | Field and Description |
---|---|
static ClassNode |
COMPILESTATIC_CLASSNODE |
Constructor and Description |
---|
TraitComposer() |
Modifier and Type | Method and Description |
---|---|
static void |
doExtendTraits(ClassNode cNode,
SourceUnit unit,
CompilationUnit cu)
Given a class node, if this class node implements a trait, then generate all the appropriate
code which delegates calls to the trait.
|
public static final ClassNode COMPILESTATIC_CLASSNODE
public static void doExtendTraits(ClassNode cNode, SourceUnit unit, CompilationUnit cu)
cNode
- a class nodeunit
- the source unit