Class MojoAnnotationVisitor
java.lang.Object
org.objectweb.asm.AnnotationVisitor
org.apache.maven.tools.plugin.extractor.annotations.scanner.visitors.MojoAnnotationVisitor
public class MojoAnnotationVisitor
extends org.objectweb.asm.AnnotationVisitor
Visitor for annotations.
- Since:
- 3.0
- Author:
- Olivier Lamy
-
Field Summary
Fields inherited from class org.objectweb.asm.AnnotationVisitor
api, av -
Method Summary
Modifier and TypeMethodDescriptiongetArrayVisitor(String name) Returns the sub-visitor created byvisitArray(String)for the given array attribute.Returns the nested annotation visitors collected byvisitAnnotation(String, String)and by array sub-visitors.voidorg.objectweb.asm.AnnotationVisitorvisitAnnotation(String name, String desc) org.objectweb.asm.AnnotationVisitorvisitArray(String name) voidMethods inherited from class org.objectweb.asm.AnnotationVisitor
getDelegate, visitEnd
-
Method Details
-
getAnnotationValues
-
visit
-
visitEnum
-
visitAnnotation
-
visitArray
- Overrides:
visitArrayin classorg.objectweb.asm.AnnotationVisitor
-
getArrayVisitor
Returns the sub-visitor created byvisitArray(String)for the given array attribute. The sub-visitor'sgetNestedAnnotationVisitors()contains the annotation elements.- Parameters:
name- the array attribute name- Returns:
- the array sub-visitor, or
nullif not visited
-
getNestedAnnotationVisitors
Returns the nested annotation visitors collected byvisitAnnotation(String, String)and by array sub-visitors. Used to extract elements from repeatable annotation containers such as@Afters.- Returns:
- list of nested annotation visitors, never
null
-