On this page
[Java] Class ExtendedVerifier
- 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
Modifiers | Name | Description |
---|---|---|
static String |
JVM_ERROR_MESSAGE |
Constructor Summary
Constructor and description |
---|
ExtendedVerifier(SourceUnit sourceUnit) |
Methods Summary
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) |
Inherited Methods Summary
Field Detail
public static final String JVM_ERROR_MESSAGE
Constructor Detail
public ExtendedVerifier(SourceUnit sourceUnit)
Method Detail
@Override protected SourceUnit getSourceUnit()
@Deprecated protected boolean isAnnotationCompatible()
Check if the current runtime allows Annotation usage.
- Returns:
- true if running on a 1.5+ runtime
protected void visitAnnotations(AnnotatedNode node, int target)
@Override public void visitClass(ClassNode node)
@Override public void visitConstructor(ConstructorNode node)
@Override public void visitDeclarationExpression(DeclarationExpression expression)
@Override public void visitField(FieldNode node)
@Override public void visitMethod(MethodNode node)
@Override public void visitProperty(PropertyNode node)
© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/org/codehaus/groovy/classgen/ExtendedVerifier.html