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 | Name and description |
---|---|
protected void |
addError(String msg, ASTNode expr) |
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-2014 The Codehaus. All rights reserved.