/** * 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; }
/** * 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 * <tt>null</tt> 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(String name) { if (av != null) { return av.visitArray(name); } return null; }
@Override public AnnotationVisitor visitArray(String name) { AnnotationVisitor v = av.visitArray(name); return v == null ? null : (v == av ? this : new RemappingAnnotationAdapter(v, remapper)); } }
@Override public AnnotationVisitor visitArray(String name) { AnnotationVisitor v = av.visitArray(name); return v == null ? null : (v == av ? this : new AnnotationRemapper(v, remapper)); } }
@Override public void begin(final String nm, final Attributes attrs) { AnnotationVisitor av = (AnnotationVisitor) peek(); push(av == null ? null : av.visitArray(attrs.getValue("name"))); }
public AnnotationVisitor visitArray(final String name) { buf.setLength(0); appendComa(valueNumber++); if (name != null) { buf.append(name).append('='); } buf.append('{'); text.add(buf.toString()); TraceAnnotationVisitor tav = createTraceAnnotationVisitor(); text.add(tav.getText()); text.add("}"); if (av != null) { tav.av = av.visitArray(name); } return tav; }
@Override public AnnotationVisitor visitArray(final String name) { Printer p = this.p.visitArray(name); AnnotationVisitor av = this.av == null ? null : this.av .visitArray(name); return new TraceAnnotationVisitor(av, p); }
@Override public AnnotationVisitor visitArray(final String name) { checkEnd(); checkName(name); return new CheckAnnotationAdapter(av == null ? null : av.visitArray(name), false); }
an.accept(av.visitAnnotation(name, an.desc)); } else if (value instanceof List) { AnnotationVisitor v = av.visitArray(name); if (v != null) { List<?> array = (List<?>) value;
AnnotationVisitor subAv = av.visitArray(apv.getProperty()); Object[] array = (Object[]) apv.getValue(); for (Object o : array) { break; case ENUMARRAY: AnnotationVisitor subEnav = av.visitArray(apv.getProperty()); Enum[] enArray = (Enum[]) apv.getValue(); String aenumType = "L" + BuildUtils.getInternalType(enArray[0].getClass().getName()) + ";"; break; case CLASSARRAY: AnnotationVisitor subKlav = av.visitArray(apv.getProperty()); Class[] klarray = (Class[]) apv.getValue(); for (Class klass : klarray) {
AnnotationVisitor subAv = av.visitArray(apv.getProperty()); Object[] array = (Object[]) apv.getValue(); for (Object o : array) { break; case ENUMARRAY: AnnotationVisitor subEnav = av.visitArray(apv.getProperty()); Enum[] enArray = (Enum[]) apv.getValue(); String aenumType = "L" + BuildUtils.getInternalType(enArray[0].getClass().getName()) + ";"; break; case CLASSARRAY: AnnotationVisitor subKlav = av.visitArray(apv.getProperty()); Class[] klarray = (Class[]) apv.getValue(); for (Class klass : klarray) {
buf, false, av.visitArray(name)); buf, false, av.visitArray(name));
if (numValues == 0) { return readElementValues( annotationVisitor.visitArray(elementName), currentOffset - 2, /* named = */ false, currentOffset = readElementValues( annotationVisitor.visitArray(elementName), currentOffset - 2, /* named = */ false,
if (size == 0) { return readAnnotationValues(v - 2, buf, false, av.visitArray(name)); break; default: v = readAnnotationValues(v - 3, buf, false, av.visitArray(name));