@groovy.transform.CompileStatic class LocalTransformationSupport extends java.lang.Object
Shared guard logic for local, annotation-driven AST transformations in this package whose
visit(ASTNode[], SourceUnit) entry point only applies when the visited node is a class
carrying one specific annotation type.
Used by DirtyCheckTransformation, JpaGormEntityTransformation and GormEntityTransformation.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static org.codehaus.groovy.ast.ClassNode |
resolveAnnotatedClassOrNull(org.codehaus.groovy.ast.ASTNode[] astNodes, org.codehaus.groovy.ast.ClassNode expectedAnnotationType)
|
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
astNodes - the array a local transform's visit(ASTNode[], SourceUnit) receivesexpectedAnnotationType - the annotation type this transform applies tonull if this transform does not apply
(the annotation doesn't match, or the annotated node isn't a class)