@groovy.transform.CompileStatic abstract class AbstractTraitApplyingGormASTTransformation extends AbstractGormASTTransformation
An abstract transformation that applies a Trait
Fields inherited from class | Fields |
---|---|
class AbstractGormASTTransformation |
compilationUnit |
Constructor and description |
---|
AbstractTraitApplyingGormASTTransformation
() |
Type Params | Return Type | Name and description |
---|---|---|
|
protected abstract java.lang.Class |
getTraitClass() |
|
boolean |
shouldWeave(org.codehaus.groovy.ast.AnnotationNode annotationNode, org.codehaus.groovy.ast.ClassNode classNode) |
|
void |
visit(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.AnnotationNode annotationNode, org.codehaus.groovy.ast.AnnotatedNode annotatedNode) |
|
void |
visit(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.AnnotationNode annotationNode, org.codehaus.groovy.ast.ClassNode classNode) |
|
void |
visitAfterTraitApplied(org.codehaus.groovy.control.SourceUnit sourceUnit, org.codehaus.groovy.ast.AnnotationNode annotationNode, org.codehaus.groovy.ast.ClassNode classNode) |
|
protected void |
weaveTrait(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.control.SourceUnit source, java.lang.Class traitJavaClass, org.codehaus.groovy.ast.ClassNode[] genericArguments) Weave the given trait into the given ClassNode |
|
static void |
weaveTraitWithGenerics(org.codehaus.groovy.ast.ClassNode classNode, java.lang.Class traitJavaClass, org.codehaus.groovy.ast.ClassNode[] genericArguments) |
Methods inherited from class | Name |
---|---|
class AbstractGormASTTransformation |
getAnnotationType, getAppliedMarker, isValidAnnotation, visit, visit |
Weave the given trait into the given ClassNode
classNode
- The class nodesource
- The source unittraitJavaClass
- The trait java class