public class ExtendedVerifier extends ClassCodeVisitorSupport
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 |
---|---|---|
|
protected SourceUnit |
getSourceUnit() |
|
protected boolean |
isAnnotationCompatible() Check if the current runtime allows Annotation usage. |
|
protected void |
visitAnnotations(AnnotatedNode node, int target) |
|
public void |
visitClass(ClassNode node) |
|
public void |
visitConstructor(ConstructorNode node) |
|
public void |
visitDeclarationExpression(DeclarationExpression expression) |
|
public void |
visitField(FieldNode node) |
|
public void |
visitMethod(MethodNode node) |
|
public void |
visitProperty(PropertyNode node) |
Check if the current runtime allows Annotation usage.
Copyright © 2003-2024 The Apache Software Foundation. All rights reserved.