groovyx.gpars.util
Class AsyncFunASTTransformation

java.lang.Object
  extended by groovyx.gpars.util.AsyncFunASTTransformation
All Implemented Interfaces:
org.codehaus.groovy.transform.ASTTransformation

public class AsyncFunASTTransformation
extends java.lang.Object
implements org.codehaus.groovy.transform.ASTTransformation

This transformation turns field initialExpressions into method calls to GParsPoolUtil.asyncFun(groovy.lang.Closure, boolean).

Author:
Vladimir Orany, Hamlet D'Arcy, Dinko Srkoč, Paul King
See Also:
GParsPoolUtil

Field Summary
private static org.codehaus.groovy.ast.ClassNode MY_TYPE
           
 
Constructor Summary
AsyncFunASTTransformation()
           
 
Method Summary
private static void init(org.codehaus.groovy.ast.ASTNode[] nodes)
           
private static boolean memberHasValue(org.codehaus.groovy.ast.AnnotationNode node, java.lang.String name, java.lang.Object value)
           
private static void validatePoolClass(org.codehaus.groovy.ast.expr.Expression classExpression, org.codehaus.groovy.ast.AnnotatedNode fieldNode, org.codehaus.groovy.control.SourceUnit source)
           
 void visit(org.codehaus.groovy.ast.ASTNode[] nodes, org.codehaus.groovy.control.SourceUnit source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MY_TYPE

private static final org.codehaus.groovy.ast.ClassNode MY_TYPE
Constructor Detail

AsyncFunASTTransformation

public AsyncFunASTTransformation()
Method Detail

visit

public void visit(org.codehaus.groovy.ast.ASTNode[] nodes,
                  org.codehaus.groovy.control.SourceUnit source)
Specified by:
visit in interface org.codehaus.groovy.transform.ASTTransformation

validatePoolClass

private static void validatePoolClass(org.codehaus.groovy.ast.expr.Expression classExpression,
                                      org.codehaus.groovy.ast.AnnotatedNode fieldNode,
                                      org.codehaus.groovy.control.SourceUnit source)

init

private static void init(org.codehaus.groovy.ast.ASTNode[] nodes)

memberHasValue

private static boolean memberHasValue(org.codehaus.groovy.ast.AnnotationNode node,
                                      java.lang.String name,
                                      java.lang.Object value)

Copyright © 2008–2012 Václav Pech. All Rights Reserved.