Methods
Type Params |
Return Type |
Name and description |
|
protected void |
addMethodToInvokeClosure(org.codehaus.groovy.ast.ClassNode controllerClassNode, org.codehaus.groovy.ast.PropertyNode closureProperty, org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.classgen.GeneratorContext context)
|
|
protected void |
annotateActionMethod(org.codehaus.groovy.ast.ClassNode controllerClassNode, org.codehaus.groovy.ast.Parameter[] parameters, MethodNode methodNode)
|
|
public java.lang.Object |
call(java.lang.Object object)
|
|
public java.lang.String[] |
getArtefactTypes()
|
|
protected BlockStatement |
getCodeToHandleAllowedMethods(org.codehaus.groovy.ast.ClassNode controllerClass, java.lang.String methodName)
|
|
protected java.util.Collection<MethodNode> |
getExceptionHandlerMethods(org.codehaus.groovy.ast.ClassNode classNode, org.codehaus.groovy.control.SourceUnit sourceUnit)
|
|
protected Expression |
getRejectValueExpression(org.codehaus.groovy.ast.ClassNode classNode, java.lang.String methodParamName)
|
|
protected BlockStatement |
initializeActionParameters(org.codehaus.groovy.ast.ClassNode classNode, ASTNode actionNode, java.lang.String actionName, org.codehaus.groovy.ast.Parameter[] actionParameters, org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.classgen.GeneratorContext context)
|
|
protected void |
initializeAndValidateCommandObjectParameter(BlockStatement wrapper, org.codehaus.groovy.ast.ClassNode controllerNode, org.codehaus.groovy.ast.ClassNode commandObjectNode, ASTNode actionNode, java.lang.String actionName, java.lang.String paramName, org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.classgen.GeneratorContext context)
|
|
protected void |
initializeCommandObjectParameter(BlockStatement wrapper, org.codehaus.groovy.ast.ClassNode commandObjectNode, java.lang.String paramName, org.codehaus.groovy.control.SourceUnit source)
|
|
protected void |
initializeMethodParameter(org.codehaus.groovy.ast.ClassNode classNode, BlockStatement wrapper, ASTNode actionNode, java.lang.String actionName, org.codehaus.groovy.ast.Parameter param, org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.classgen.GeneratorContext context)
|
|
protected void |
initializePrimitiveOrTypeWrapperParameter(org.codehaus.groovy.ast.ClassNode classNode, BlockStatement wrapper, org.codehaus.groovy.ast.Parameter param, java.lang.String requestParameterName)
|
|
protected void |
initializeStringParameter(org.codehaus.groovy.ast.ClassNode classNode, BlockStatement wrapper, org.codehaus.groovy.ast.Parameter param, java.lang.String requestParameterName)
|
|
protected boolean |
methodShouldBeConfiguredAsControllerAction(MethodNode method) - Parameters:
method - a potential controller action method
|
|
public void |
performInjection(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.classgen.GeneratorContext context, org.codehaus.groovy.ast.ClassNode classNode)
|
|
public void |
performInjection(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode)
|
|
public void |
performInjectionOnAnnotatedClass(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.classgen.GeneratorContext context, org.codehaus.groovy.ast.ClassNode classNode)
|
|
public void |
performInjectionOnAnnotatedClass(org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.ast.ClassNode classNode)
|
|
public void |
setCompilationUnit(org.codehaus.groovy.control.CompilationUnit compilationUnit)
|
|
public boolean |
shouldInject(java.net.URL url)
|
|
protected void |
transformClosureToMethod(org.codehaus.groovy.ast.ClassNode classNode, ClosureExpression closureAction, org.codehaus.groovy.ast.PropertyNode property, org.codehaus.groovy.control.SourceUnit source, org.codehaus.groovy.classgen.GeneratorContext context)
|
|
protected void |
wrapMethodBodyWithExceptionHandling(org.codehaus.groovy.ast.ClassNode controllerClassNode, MethodNode methodNode) This will wrap the method body in a try catch block which does something
like this:
try {
// original method body here
} catch (Exception $caughtException) {
Method $method = getExceptionHandlerMethod($caughtException.getClass())
if($method) {
return $method.invoke(this, $caughtException)
} else {
throw $caughtException
}
}
|