|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.CodeVisitorSupport org.codehaus.groovy.ast.ClassCodeVisitorSupport org.codehaus.groovy.classgen.ExtendedVerifier
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
Field Summary | |
---|---|
static String |
JVM_ERROR_MESSAGE
|
Constructor Summary | |
ExtendedVerifier(SourceUnit sourceUnit)
|
Method Summary | |
---|---|
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)
|
Field Detail |
---|
public static final String JVM_ERROR_MESSAGE
Constructor Detail |
---|
public ExtendedVerifier(SourceUnit sourceUnit)
Method Detail |
---|
protected void addError(String msg, ASTNode expr)
@Override protected SourceUnit getSourceUnit()
protected boolean isAnnotationCompatible()
protected void visitAnnotations(AnnotatedNode node, int target)
public void visitClass(ClassNode node)
public void visitConstructor(ConstructorNode node)
@Override public void visitDeclarationExpression(DeclarationExpression expression)
public void visitField(FieldNode node)
public void visitGenericType(GenericsType genericsType)
public void visitMethod(MethodNode node)
public void visitProperty(PropertyNode node)
Copyright © 2003-2013 The Codehaus. All rights reserved.