org.codehaus.groovy.transform
[Java] Class ReadWriteLockASTTransformation
java.lang.Object
  
org.codehaus.groovy.transform.ReadWriteLockASTTransformation
- All Implemented Interfaces: 
 - ASTTransformation, org.objectweb.asm.Opcodes
 
@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION)
public class ReadWriteLockASTTransformation
extends Object
 Handles generation of code for the @WithReadLock and @WithWriteLock annotation. 
 This transformation adds an instance of ReentrantReadWriteLock to the class. 
 Any method annotated with
- WithReadLock:
 - will obtain a read lock and release it in a finally block.
 Any method annotated with 
- WithWriteLock:
 - will obtain a write lock and release it in a finally block.
 For more information see WithReadLock and WithWriteLock
 
 - Authors:
 - Hamlet D'Arcy
 
    
     
                 
    
    
        
        visit
        public void visit(ASTNode[] nodes, SourceUnit source)
        
        - 
        
 
        
        
        
    
     
Copyright © 2003-2011 The Codehaus. All rights reserved.