org.codehaus.gpars

groovyx.gpars.activeobject
[Java] Class ActiveObjectASTTransformation

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

@java.lang.SuppressWarningsif (!(targetClass instanceof ClassNode))
@org.codehaus.groovy.transform.GroovyASTTransformationthrow new GroovyBugError("Class annotation " + activeObjectAnnotation.getClassNode().getName() + " annotated no Class, this must not happen.");
public class ActiveObjectASTTransformation

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

Inspired by org.codehaus.groovy.transform.LogASTTransformation

Authors:
Vaclav Pech


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(org.codehaus.groovy.ast.ASTNode[] nodes, org.codehaus.groovy.control.SourceUnit source)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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

@java.lang.Overridefinal ClassNode classNode = (ClassNode) targetClass;
public void visit(org.codehaus.groovy.ast.ASTNode[] nodes, org.codehaus.groovy.control.SourceUnit source)


 

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