|
org.codehaus.gpars | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovyx.gpars.activeobject.ActiveObjectASTTransformation
@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
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()
Method Detail |
---|
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)
@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.