@@ -54,8 +54,9 @@ public abstract class AnnotationVisitor {
54
54
/**
55
55
* Constructs a new {@link AnnotationVisitor}.
56
56
*
57
- * @param api the ASM API version implemented by this visitor. Must be one
58
- * of {@link Opcodes#ASM4}.
57
+ * @param api
58
+ * the ASM API version implemented by this visitor. Must be one
59
+ * of {@link Opcodes#ASM4}.
59
60
*/
60
61
public AnnotationVisitor (final int api ) {
61
62
this (api , null );
@@ -64,30 +65,35 @@ public AnnotationVisitor(final int api) {
64
65
/**
65
66
* Constructs a new {@link AnnotationVisitor}.
66
67
*
67
- * @param api the ASM API version implemented by this visitor. Must be one
68
- * of {@link Opcodes#ASM4}.
69
- * @param av the annotation visitor to which this visitor must delegate
70
- * method calls. May be null.
68
+ * @param api
69
+ * the ASM API version implemented by this visitor. Must be one
70
+ * of {@link Opcodes#ASM4}.
71
+ * @param av
72
+ * the annotation visitor to which this visitor must delegate
73
+ * method calls. May be null.
71
74
*/
72
75
public AnnotationVisitor (final int api , final AnnotationVisitor av ) {
73
- /* if (api != Opcodes.ASM4) {
76
+ if (api != Opcodes .ASM4 ) {
74
77
throw new IllegalArgumentException ();
75
- }*/
78
+ }
76
79
this .api = api ;
77
80
this .av = av ;
78
81
}
79
82
80
83
/**
81
84
* Visits a primitive value of the annotation.
82
85
*
83
- * @param name the value name.
84
- * @param value the actual value, whose type must be {@link Byte},
85
- * {@link Boolean}, {@link Character}, {@link Short}, {@link Integer}
86
- * , {@link Long}, {@link Float}, {@link Double}, {@link String} or
87
- * {@link Type} or OBJECT or ARRAY sort. This value can also be an
88
- * array of byte, boolean, short, char, int, long, float or double
89
- * values (this is equivalent to using {@link #visitArray visitArray}
90
- * and visiting each array element in turn, but is more convenient).
86
+ * @param name
87
+ * the value name.
88
+ * @param value
89
+ * the actual value, whose type must be {@link Byte},
90
+ * {@link Boolean}, {@link Character}, {@link Short},
91
+ * {@link Integer} , {@link Long}, {@link Float}, {@link Double},
92
+ * {@link String} or {@link Type} or OBJECT or ARRAY sort. This
93
+ * value can also be an array of byte, boolean, short, char, int,
94
+ * long, float or double values (this is equivalent to using
95
+ * {@link #visitArray visitArray} and visiting each array element
96
+ * in turn, but is more convenient).
91
97
*/
92
98
public void visit (String name , Object value ) {
93
99
if (av != null ) {
@@ -98,9 +104,12 @@ public void visit(String name, Object value) {
98
104
/**
99
105
* Visits an enumeration value of the annotation.
100
106
*
101
- * @param name the value name.
102
- * @param desc the class descriptor of the enumeration class.
103
- * @param value the actual enumeration value.
107
+ * @param name
108
+ * the value name.
109
+ * @param desc
110
+ * the class descriptor of the enumeration class.
111
+ * @param value
112
+ * the actual enumeration value.
104
113
*/
105
114
public void visitEnum (String name , String desc , String value ) {
106
115
if (av != null ) {
@@ -111,12 +120,14 @@ public void visitEnum(String name, String desc, String value) {
111
120
/**
112
121
* Visits a nested annotation value of the annotation.
113
122
*
114
- * @param name the value name.
115
- * @param desc the class descriptor of the nested annotation class.
123
+ * @param name
124
+ * the value name.
125
+ * @param desc
126
+ * the class descriptor of the nested annotation class.
116
127
* @return a visitor to visit the actual nested annotation value, or
117
- * <tt>null</tt> if this visitor is not interested in visiting
118
- * this nested annotation. <i>The nested annotation value must be
119
- * fully visited before calling other methods on this annotation
128
+ * <tt>null</tt> if this visitor is not interested in visiting this
129
+ * nested annotation. <i>The nested annotation value must be fully
130
+ * visited before calling other methods on this annotation
120
131
* visitor</i>.
121
132
*/
122
133
public AnnotationVisitor visitAnnotation (String name , String desc ) {
@@ -132,10 +143,11 @@ public AnnotationVisitor visitAnnotation(String name, String desc) {
132
143
* can be passed as value to {@link #visit visit}. This is what
133
144
* {@link ClassReader} does.
134
145
*
135
- * @param name the value name.
146
+ * @param name
147
+ * the value name.
136
148
* @return a visitor to visit the actual array value elements, or
137
- * <tt>null</tt> if this visitor is not interested in visiting
138
- * these values. The 'name' parameters passed to the methods of this
149
+ * <tt>null</tt> if this visitor is not interested in visiting these
150
+ * values. The 'name' parameters passed to the methods of this
139
151
* visitor are ignored. <i>All the array values must be visited
140
152
* before calling other methods on this annotation visitor</i>.
141
153
*/
0 commit comments