|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.compiler.injection.AbstractGrailsArtefactTransformer org.codehaus.groovy.grails.compiler.web.ControllerTransformer
@AstTransformer public class ControllerTransformer extends AbstractGrailsArtefactTransformer
Enhances controller classes with the appropriate API at compile time.
Field Summary | |
---|---|
static java.util.regex.Pattern |
CONTROLLER_PATTERN
|
Fields inherited from class AbstractGrailsArtefactTransformer | |
---|---|
CURRENT_PREFIX, METHOD_MISSING_METHOD_NAME, OBJECT_CLASS, PUBLIC_STATIC_MODIFIER, STATIC_METHOD_MISSING_METHOD_NAME, THIS_EXPRESSION |
Method Summary | |
---|---|
protected java.lang.String
|
getArtefactType()
|
java.lang.Class
|
getInstanceImplementation()
|
protected org.codehaus.groovy.ast.AnnotationNode
|
getMarkerAnnotation()
|
java.lang.Class
|
getStaticImplementation()
|
protected boolean
|
isControllerClassNode(org.codehaus.groovy.ast.ClassNode classNode)
|
void
|
performInjection(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.classgen.GeneratorContext context, org.codehaus.groovy.ast.ClassNode classNode)
|
void
|
performInjection(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode)
|
protected void
|
performInjectionInternal(java.lang.String apiInstanceProperty, org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode)
|
boolean
|
shouldInject(java.net.URL url)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Field Detail |
---|
public static java.util.regex.Pattern CONTROLLER_PATTERN
Method Detail |
---|
protected String getArtefactType() { protected java.lang.String getArtefactType()
@Override public java.lang.Class getInstanceImplementation()
protected AnnotationNode getMarkerAnnotation() { protected org.codehaus.groovy.ast.AnnotationNode getMarkerAnnotation()
@Override public java.lang.Class getStaticImplementation()
protected boolean isControllerClassNode(org.codehaus.groovy.ast.ClassNode classNode)
public void performInjection(SourceUnit source, GeneratorContext context, ClassNode classNode) { public void performInjection(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.classgen.GeneratorContext context, org.codehaus.groovy.ast.ClassNode classNode)
public void performInjection(SourceUnit source, ClassNode classNode) { public void performInjection(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode)
protected void performInjectionInternal(String apiInstanceProperty, protected void performInjectionInternal(java.lang.String apiInstanceProperty, org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode)
public boolean shouldInject(java.net.URL url)
Groovy Documentation