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
AnnotationNodeconforms to annotation meta - enhancing an
AnnotationNodeAST to reflect real annotation meta
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidvoidcheckCircularReference(ClassNode searchClass, ClassNode attrType, Expression startExp) voidcheckReturnType(ClassNode attrType, ASTNode node) voidsetReportClass(ClassNode node) visit(AnnotationNode node) protected voidvisitAnnotationExpression(String attrName, AnnotationConstantExpression valueExpr, ClassNode attrType) protected voidvisitConstantExpression(String attrName, ConstantExpression valueExpr, ClassNode attrType) protected voidvisitEnumExpression(String attrName, PropertyExpression valueExpr, ClassNode attrType) protected voidvisitExpression(String attrName, Expression valueExpr, ClassNode attrType) protected voidvisitListExpression(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
-