- org.codehaus.groovy.transform.ReadWriteLockASTTransformation
-
@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION)
public class ReadWriteLockASTTransformation
extends AbstractASTTransformation
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
-
-
Methods Summary
-
Inherited Methods Summary
Inherited Methods
Methods inherited from class |
Name |
class AbstractASTTransformation |
addError, checkIncludeExclude, checkIncludeExclude, checkIncludeExcludeUndefinedAware, checkIncludeExcludeUndefinedAware, checkNotInterface, checkPropertyList, checkPropertyList, checkPropertyList, copyAnnotatedNodeAnnotations, copyAnnotatedNodeAnnotations, deemedInternalName, getAnnotationName, getClassList, getMemberClassList, getMemberClassValue, getMemberClassValue, getMemberIntValue, getMemberList, getMemberStringList, getMemberStringValue, getMemberStringValue, getMemberValue, hasAnnotation, init, memberHasValue, nonGeneric, shouldSkip, shouldSkip, shouldSkipOnDescriptor, shouldSkipOnDescriptorUndefinedAware, shouldSkipUndefinedAware, shouldSkipUndefinedAware, tokenize |
-
-
Field Detail
-
public static final String DEFAULT_INSTANCE_LOCKNAME
-
public static final String DEFAULT_STATIC_LOCKNAME
Copyright © 2003-2021 The Apache Software Foundation. All rights reserved.