@org.codehaus.groovy.transform.GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION) public class ArtefactTypeAstTransformation extends AbstractArtefactTypeAstTransformation implements groovy.transform.CompilationUnitAware
A transformation used to apply transformers to classes not located in Grails directory structure. For example any class can be annotated with @Artefact("Controller") to make it into a controller no matter what the location.
Modifiers | Name | Description |
---|---|---|
protected org.codehaus.groovy.control.CompilationUnit |
compilationUnit |
Type Params | Return Type | Name and description |
---|---|---|
|
public static void |
doPerformInjectionOnArtefactType(org.codehaus.groovy.control.SourceUnit sourceUnit, org.codehaus.groovy.ast.ClassNode cNode, java.lang.String artefactType) |
|
public static java.util.List<ClassInjector> |
findInjectors(java.lang.String artefactType, ClassInjector[] classInjectors) |
|
protected org.codehaus.groovy.ast.ClassNode |
getAnnotationType() |
|
protected java.lang.Class |
getAnnotationTypeClass() |
|
protected java.lang.Class<?> |
getAstAppliedMarkerClass() |
|
public static boolean |
hasArtefactType(java.lang.String artefactType, GrailsArtefactClassInjector gace) |
|
protected boolean |
isApplied(org.codehaus.groovy.ast.ClassNode cNode) |
|
protected boolean |
isArtefactAnnotationNode(org.codehaus.groovy.ast.AnnotationNode annotationNode) |
|
protected void |
markApplied(org.codehaus.groovy.ast.ClassNode classNode) |
|
public static void |
performInjection(org.codehaus.groovy.control.SourceUnit sourceUnit, org.codehaus.groovy.ast.ClassNode cNode, java.util.Collection<ClassInjector> injectors) |
|
public void |
performInjectionOnArtefactType(org.codehaus.groovy.control.SourceUnit sourceUnit, org.codehaus.groovy.ast.ClassNode cNode, java.lang.String artefactType) |
|
protected void |
performTraitInjectionOnArtefactType(org.codehaus.groovy.control.SourceUnit sourceUnit, org.codehaus.groovy.ast.ClassNode cNode, java.lang.String artefactType) |
|
protected void |
postProcess(org.codehaus.groovy.control.SourceUnit sourceUnit, org.codehaus.groovy.ast.AnnotationNode annotationNode, org.codehaus.groovy.ast.ClassNode classNode, java.lang.String artefactType) |
|
protected java.lang.String |
resolveArtefactType(org.codehaus.groovy.control.SourceUnit sourceUnit, org.codehaus.groovy.ast.AnnotationNode annotationNode, org.codehaus.groovy.ast.ClassNode classNode) |
|
public void |
setCompilationUnit(org.codehaus.groovy.control.CompilationUnit unit) |
|
public void |
visit(ASTNode[] astNodes, org.codehaus.groovy.control.SourceUnit sourceUnit) |
Methods inherited from class | Name |
---|---|
class AbstractArtefactTypeAstTransformation |
performInjectionOnArtefactType |