org.codehaus.gpars

groovyx.gpars.util
[Java] Class AsyncFunASTTransformation

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

@GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS)
public class AsyncFunASTTransformation

This transformation turns field initialExpressions into method calls to GParsPoolUtil.asyncFun.

Authors:
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
java.lang.Object#wait(long), java.lang.Object#wait(), 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

MY_TYPE

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


 
Constructor Detail

AsyncFunASTTransformation

AsyncFunASTTransformation()


 
Method Detail

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)


validatePoolClass

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


visit

@Override
public void visit(org.codehaus.groovy.ast.ASTNode[] nodes, org.codehaus.groovy.control.SourceUnit source)


 

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