|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
---|---|
String |
JVM_ERROR_MESSAGE
|
ClassNode |
currentClass
|
SourceUnit |
source
|
Constructor Summary | |
ExtendedVerifier(SourceUnit sourceUnit)
|
Method Summary | |
---|---|
void |
addError(String msg, ASTNode expr)
|
boolean |
isAnnotationCompatible()
Check if the current runtime allows Annotation usage. |
AnnotationNode |
visitAnnotation(AnnotationNode node)
Resolve metadata and details of the annotation. |
void |
visitAnnotations(AnnotatedNode node, int target)
|
void |
visitClass(ClassNode node)
|
void |
visitConstructor(ConstructorNode node)
|
void |
visitField(FieldNode node)
|
void |
visitGenericType(GenericsType genericsType)
|
void |
visitMethod(MethodNode node)
|
void |
visitProperty(PropertyNode node)
|
Constructor Detail |
---|
public ExtendedVerifier(SourceUnit sourceUnit)
Method Detail |
---|
void addError(String msg, ASTNode expr)
boolean isAnnotationCompatible()
AnnotationNode visitAnnotation(AnnotationNode node)
void visitAnnotations(AnnotatedNode node, int target)
public void visitClass(ClassNode node)
public void visitConstructor(ConstructorNode node)
public void visitField(FieldNode node)
public void visitGenericType(GenericsType genericsType)
public void visitMethod(MethodNode node)
public void visitProperty(PropertyNode node)