Package org.codehaus.groovy.classgen
Class AnnotationVisitor
java.lang.Object
org.codehaus.groovy.classgen.AnnotationVisitor
An Annotation visitor responsible for:
- reading annotation metadata (@Retention, @Target, attribute types)
- verify that an
AnnotationNode
conforms to annotation meta - enhancing an
AnnotationNode
AST to reflect real annotation meta
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
void
checkCircularReference
(ClassNode searchClass, ClassNode attrType, Expression startExp) void
checkReturnType
(ClassNode attrType, ASTNode node) void
setReportClass
(ClassNode node) visit
(AnnotationNode node) protected void
visitAnnotationExpression
(String attrName, AnnotationConstantExpression valueExpr, ClassNode attrType) protected void
visitConstantExpression
(String attrName, ConstantExpression valueExpr, ClassNode attrType) protected void
visitEnumExpression
(String attrName, PropertyExpression valueExpr, ClassNode attrType) protected void
visitExpression
(String attrName, Expression valueExpr, ClassNode attrType) protected void
visitListExpression
(String attrName, ListExpression listExpr, ClassNode elementType)
-
Constructor Details
-
AnnotationVisitor
-
-
Method Details
-
setReportClass
-
visit
-
visitExpression
-
checkReturnType
-
visitListExpression
-
visitEnumExpression
protected void visitEnumExpression(String attrName, PropertyExpression valueExpr, ClassNode attrType) -
visitConstantExpression
protected void visitConstantExpression(String attrName, ConstantExpression valueExpr, ClassNode attrType) -
visitAnnotationExpression
protected void visitAnnotationExpression(String attrName, AnnotationConstantExpression valueExpr, ClassNode attrType) -
addError
-
addError
-
checkCircularReference
-