org.codehaus.gpars

groovyx.gpars.activeobject
[Java] Class ActiveObjectASTTransformation

java.lang.Object
  groovyx.gpars.activeobject.ActiveObjectASTTransformation
All Implemented Interfaces:
org.codehaus.groovy.transform.ASTTransformation

@SuppressWarnings({"CallToStringEquals"})
@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION)
public class ActiveObjectASTTransformation
extends java.lang.Object

Transforms active objects so that their active methods can be invoked asynchronously through an internal actor.

Authors:
Vaclav Pech

Inspired by org.codehaus.groovy.transform.LogASTTransformation


Nested Class Summary
private static class ActiveObjectASTTransformation.MyClassCodeExpressionTransformer

 
Constructor Summary
ActiveObjectASTTransformation()

 
Method Summary
private static boolean isRootActiveObject(org.codehaus.groovy.ast.ClassNode classNode)

private static java.lang.String lookupActorFieldName(org.codehaus.groovy.ast.AnnotationNode logAnnotation)

private static java.lang.String lookupActorGroupName(org.codehaus.groovy.ast.AnnotationNode logAnnotation)

void visit(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()
 

Constructor Detail

ActiveObjectASTTransformation

ActiveObjectASTTransformation()


 
Method Detail

isRootActiveObject

private static boolean isRootActiveObject(org.codehaus.groovy.ast.ClassNode classNode)


lookupActorFieldName

private static java.lang.String lookupActorFieldName(org.codehaus.groovy.ast.AnnotationNode logAnnotation)


lookupActorGroupName

private static java.lang.String lookupActorGroupName(org.codehaus.groovy.ast.AnnotationNode logAnnotation)


visit

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


 

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