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
visit
(AnnotationNode node) protected void
visitAnnotationExpression
(String attrName, AnnotationConstantExpression expression, ClassNode attrType) protected void
visitConstantExpression
(String attrName, ConstantExpression constExpr, ClassNode attrType) protected void
visitEnumExpression
(String attrName, PropertyExpression propExpr, ClassNode attrType) protected void
visitExpression
(String attrName, Expression attrExp, ClassNode attrType) protected void
visitListExpression
(String attrName, ListExpression listExpr, ClassNode elementType)
-
Constructor Details
-
AnnotationVisitor
-
-
Method Details
-
setReportClass
-
visit
-
visitExpression
-
checkReturnType
-
visitAnnotationExpression
protected void visitAnnotationExpression(String attrName, AnnotationConstantExpression expression, ClassNode attrType) -
visitListExpression
-
visitConstantExpression
protected void visitConstantExpression(String attrName, ConstantExpression constExpr, ClassNode attrType) -
visitEnumExpression
protected void visitEnumExpression(String attrName, PropertyExpression propExpr, ClassNode attrType) -
addError
-
addError
-
checkCircularReference
-