/** * Visits an array value of the annotation. Note that arrays of primitive types (such as byte, * boolean, short, char, int, long, float or double) can be passed as value to {@link #visit * visit}. This is what {@link ClassReader} does. * * @param name the value name. * @return a visitor to visit the actual array value elements, or {@literal null} if this visitor * is not interested in visiting these values. The 'name' parameters passed to the methods of * this visitor are ignored. <i>All the array values must be visited before calling other * methods on this annotation visitor</i>. */ public AnnotationVisitor visitArray(final String name) { if (av != null) { return av.visitArray(name); } return null; }
@Override public AnnotationVisitor visitArray(final String name) { return new AnnotationVisitorAdapter(dest.visitArray(name)); }
if (numValues == 0) { return readElementValues( annotationVisitor.visitArray(elementName), currentOffset - 2, /* named = */ false, currentOffset = readElementValues( annotationVisitor.visitArray(elementName), currentOffset - 2, /* named = */ false,
/** * Visits an array value of the annotation. Note that arrays of primitive types (such as byte, * boolean, short, char, int, long, float or double) can be passed as value to {@link #visit * visit}. This is what {@link ClassReader} does. * * @param name the value name. * @return a visitor to visit the actual array value elements, or {@literal null} if this visitor * is not interested in visiting these values. The 'name' parameters passed to the methods of * this visitor are ignored. <i>All the array values must be visited before calling other * methods on this annotation visitor</i>. */ public AnnotationVisitor visitArray(final String name) { if (av != null) { return av.visitArray(name); } return null; }
@Override public AnnotationVisitor visitArray(final String name) { return new AnnotationVisitorAdapter(dest.visitArray(name)); }
if (numValues == 0) { return readElementValues( annotationVisitor.visitArray(elementName), currentOffset - 2, /* named = */ false, currentOffset = readElementValues( annotationVisitor.visitArray(elementName), currentOffset - 2, /* named = */ false,