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
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
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), 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() |
ActiveObjectASTTransformation
ActiveObjectASTTransformation()
-
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(org.codehaus.groovy.ast.ASTNode[] nodes, org.codehaus.groovy.control.SourceUnit source)
-
Copyright © 2008–2012 Václav Pech. All Rights Reserved.