private static class ActiveObjectASTTransformation.MyClassCodeExpressionTransformer
extends org.codehaus.groovy.ast.ClassCodeExpressionTransformer
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
actorFieldName |
private java.lang.String |
actorGroupName |
private org.codehaus.groovy.ast.FieldNode |
actorNode |
private org.codehaus.groovy.control.SourceUnit |
source |
Modifier | Constructor and Description |
---|---|
private |
ActiveObjectASTTransformation.MyClassCodeExpressionTransformer(org.codehaus.groovy.control.SourceUnit source,
java.lang.String actorFieldName,
java.lang.String actorGroupName) |
Modifier and Type | Method and Description |
---|---|
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 boolean |
checkBlockingMethod(org.codehaus.groovy.ast.MethodNode method,
java.lang.Iterable<org.codehaus.groovy.ast.AnnotationNode> annotations) |
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 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) |
visitAnnotations, visitAssertStatement, visitCaseStatement, visitConstructorOrMethod, visitDoWhileLoop, visitExpressionStatement, visitField, visitForLoop, visitIfElse, visitProperty, visitReturnStatement, visitSwitch, visitSynchronizedStatement, visitThrowStatement, visitWhileLoop
addError, visitBlockStatement, visitBreakStatement, visitCatchStatement, visitClassCodeContainer, visitConstructor, visitContinueStatement, visitDeclarationExpression, visitImports, visitMethod, visitObjectInitializerStatements, visitPackage, visitStatement, visitTryCatchFinally
visitArgumentlistExpression, visitArrayExpression, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBytecodeExpression, visitCastExpression, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitEmptyStatement, visitFieldExpression, visitGStringExpression, visitListExpression, visitListOfExpressions, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpression
private org.codehaus.groovy.ast.FieldNode actorNode
private final org.codehaus.groovy.control.SourceUnit source
private final java.lang.String actorFieldName
private final java.lang.String actorGroupName
private ActiveObjectASTTransformation.MyClassCodeExpressionTransformer(org.codehaus.groovy.control.SourceUnit source, java.lang.String actorFieldName, java.lang.String actorGroupName)
protected org.codehaus.groovy.control.SourceUnit getSourceUnit()
getSourceUnit
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
public org.codehaus.groovy.ast.expr.Expression transform(org.codehaus.groovy.ast.expr.Expression exp)
transform
in interface org.codehaus.groovy.ast.expr.ExpressionTransformer
transform
in class org.codehaus.groovy.ast.ClassCodeExpressionTransformer
public void visitClass(org.codehaus.groovy.ast.ClassNode node)
visitClass
in interface org.codehaus.groovy.ast.GroovyClassVisitor
visitClass
in class org.codehaus.groovy.ast.ClassCodeVisitorSupport
private boolean checkBlockingMethod(org.codehaus.groovy.ast.MethodNode method, java.lang.Iterable<org.codehaus.groovy.ast.AnnotationNode> annotations)
private static boolean blockingMandated(java.lang.String text)
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 java.lang.String findSuitablePrivateMethodName(org.codehaus.groovy.ast.ClassNode owner, org.codehaus.groovy.ast.MethodNode original)
private static org.codehaus.groovy.ast.ClassNode nonGeneric(org.codehaus.groovy.ast.ClassNode type)
private static org.codehaus.groovy.ast.FieldNode addActorFieldToClass(org.codehaus.groovy.ast.ClassNode classNode, java.lang.String logFieldName, java.lang.String actorGroupName)