groovyx.gpars.activeobject
Class ActiveObjectASTTransformation.MyClassCodeExpressionTransformer
java.lang.Object
org.codehaus.groovy.ast.CodeVisitorSupport
org.codehaus.groovy.ast.ClassCodeVisitorSupport
org.codehaus.groovy.ast.ClassCodeExpressionTransformer
groovyx.gpars.activeobject.ActiveObjectASTTransformation.MyClassCodeExpressionTransformer
- All Implemented Interfaces:
- org.codehaus.groovy.ast.expr.ExpressionTransformer, org.codehaus.groovy.ast.GroovyClassVisitor, org.codehaus.groovy.ast.GroovyCodeVisitor
- Enclosing class:
- ActiveObjectASTTransformation
private static class ActiveObjectASTTransformation.MyClassCodeExpressionTransformer
- extends org.codehaus.groovy.ast.ClassCodeExpressionTransformer
Method Summary |
private static void |
addActiveMethod(org.codehaus.groovy.ast.FieldNode actorNode,
org.codehaus.groovy.ast.ClassNode owner,
org.codehaus.groovy.ast.MethodNode original,
boolean blocking)
|
private static org.codehaus.groovy.ast.FieldNode |
addActorFieldToClass(org.codehaus.groovy.ast.ClassNode classNode,
java.lang.String logFieldName,
java.lang.String actorGroupName)
|
private static boolean |
blockingMandated(java.lang.String text)
|
private static java.lang.String |
findSuitablePrivateMethodName(org.codehaus.groovy.ast.ClassNode owner,
org.codehaus.groovy.ast.MethodNode original)
|
protected org.codehaus.groovy.control.SourceUnit |
getSourceUnit()
|
private boolean |
checkBlockingMethod(org.codehaus.groovy.ast.MethodNode method,
java.lang.Iterable<org.codehaus.groovy.ast.AnnotationNode> annotations)
|
private static org.codehaus.groovy.ast.ClassNode |
nonGeneric(org.codehaus.groovy.ast.ClassNode type)
|
org.codehaus.groovy.ast.expr.Expression |
transform(org.codehaus.groovy.ast.expr.Expression exp)
|
void |
visitClass(org.codehaus.groovy.ast.ClassNode node)
|
Methods inherited from class org.codehaus.groovy.ast.ClassCodeExpressionTransformer |
visitAnnotations, visitAssertStatement, visitCaseStatement, visitConstructorOrMethod, visitDoWhileLoop, visitExpressionStatement, visitField, visitForLoop, visitIfElse, visitProperty, visitReturnStatement, visitSwitch, visitSynchronizedStatement, visitThrowStatement, visitWhileLoop |
Methods inherited from class org.codehaus.groovy.ast.ClassCodeVisitorSupport |
addError, visitBlockStatement, visitBreakStatement, visitCatchStatement, visitClassCodeContainer, visitConstructor, visitContinueStatement, visitImports, visitMethod, visitObjectInitializerStatements, visitPackage, visitStatement, visitTryCatchFinally, visitVariableExpression |
Methods inherited from class org.codehaus.groovy.ast.CodeVisitorSupport |
visitArgumentlistExpression, visitArrayExpression, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBytecodeExpression, visitCastExpression, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitDeclarationExpression, visitEmptyStatement, visitFieldExpression, visitGStringExpression, visitListExpression, visitListOfExpressions, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitRegexExpression, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
actorNode
private org.codehaus.groovy.ast.FieldNode actorNode
source
private final org.codehaus.groovy.control.SourceUnit source
actorFieldName
private final java.lang.String actorFieldName
actorGroupName
private final java.lang.String actorGroupName
ActiveObjectASTTransformation.MyClassCodeExpressionTransformer
private ActiveObjectASTTransformation.MyClassCodeExpressionTransformer(org.codehaus.groovy.control.SourceUnit source,
java.lang.String actorFieldName,
java.lang.String actorGroupName)
getSourceUnit
protected org.codehaus.groovy.control.SourceUnit getSourceUnit()
- Specified by:
getSourceUnit
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
transform
public org.codehaus.groovy.ast.expr.Expression transform(org.codehaus.groovy.ast.expr.Expression exp)
- Specified by:
transform
in interface org.codehaus.groovy.ast.expr.ExpressionTransformer
- Overrides:
transform
in class org.codehaus.groovy.ast.ClassCodeExpressionTransformer
visitClass
public void visitClass(org.codehaus.groovy.ast.ClassNode node)
- Specified by:
visitClass
in interface org.codehaus.groovy.ast.GroovyClassVisitor
- Overrides:
visitClass
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
checkBlockingMethod
private boolean checkBlockingMethod(org.codehaus.groovy.ast.MethodNode method,
java.lang.Iterable<org.codehaus.groovy.ast.AnnotationNode> annotations)
blockingMandated
private static boolean blockingMandated(java.lang.String text)
addActiveMethod
private static void addActiveMethod(org.codehaus.groovy.ast.FieldNode actorNode,
org.codehaus.groovy.ast.ClassNode owner,
org.codehaus.groovy.ast.MethodNode original,
boolean blocking)
findSuitablePrivateMethodName
private static java.lang.String findSuitablePrivateMethodName(org.codehaus.groovy.ast.ClassNode owner,
org.codehaus.groovy.ast.MethodNode original)
nonGeneric
private static org.codehaus.groovy.ast.ClassNode nonGeneric(org.codehaus.groovy.ast.ClassNode type)
addActorFieldToClass
private static org.codehaus.groovy.ast.FieldNode addActorFieldToClass(org.codehaus.groovy.ast.ClassNode classNode,
java.lang.String logFieldName,
java.lang.String actorGroupName)