A specialized Groovy AST visitor meant to perform additional verifications upon the current AST. Currently it does checks on annotated nodes and annotations itself.
Current limitations: - annotations on local variables are not supported
| Modifiers | Name | Description | 
|---|---|---|
static String  | 
                            JVM_ERROR_MESSAGE | 
                            
| Constructor and description | 
|---|
                                ExtendedVerifier
                                (org.codehaus.groovy.control.SourceUnit sourceUnit) | 
                        
| Type Params | Return Type | Name and description | 
|---|---|---|
 | 
                            void | 
                            addError(String msg, ASTNode expr) | 
                        
 | 
                            protected org.codehaus.groovy.control.SourceUnit | 
                            getSourceUnit() | 
                        
 | 
                            protected boolean | 
                            isAnnotationCompatible()Check if the current runtime allows Annotation usage.  | 
                        
 | 
                            protected void | 
                            visitAnnotations(AnnotatedNode node, int target) | 
                        
 | 
                            void | 
                            visitClass(ClassNode node) | 
                        
 | 
                            void | 
                            visitConstructor(ConstructorNode node) | 
                        
 | 
                            void | 
                            visitDeclarationExpression(DeclarationExpression expression) | 
                        
 | 
                            void | 
                            visitField(FieldNode node) | 
                        
 | 
                            void | 
                            visitGenericType(GenericsType genericsType) | 
                        
 | 
                            void | 
                            visitMethod(MethodNode node) | 
                        
 | 
                            void | 
                            visitProperty(PropertyNode node) | 
                        
Check if the current runtime allows Annotation usage.
Copyright © 2003-2018 The Apache Software Foundation. All rights reserved.