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
                                (SourceUnit sourceUnit) | 
| Type Params | Return Type | Name and description | 
|---|---|---|
|  | void | addError(String msg, ASTNode node) | 
|  | protected 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-2021 The Apache Software Foundation. All rights reserved.