@Override public Void visitArray( List<? extends AnnotationValue> vals, Void p ) { for( AnnotationValue v : vals ) { v.accept( new SimpleAnnotationValueVisitor8<Void, Void>() { @Override public Void visitType( javax.lang.model.type.TypeMirror t, Void p ) { String name = t.toString(); result.add( name ); return null; }; }, null ); } return null; } }, null );
@Override public Void visitArray( List<? extends AnnotationValue> vals, Void p ) { for( AnnotationValue v : vals ) { v.accept( new SimpleAnnotationValueVisitor8<Void, Void>() { @Override public Void visitType( javax.lang.model.type.TypeMirror t, Void p ) { String name = t.toString(); result.add( name ); return null; }; }, null ); } return null; } }, null );
@Override public List<AnnotationMirror> visitArray( List<? extends AnnotationValue> vals, Void p ) { final ImmutableList.Builder<AnnotationMirror> mirrors = ImmutableList.builder(); for (final AnnotationValue val : vals) { mirrors.add(val.accept(new SimpleAnnotationValueVisitor8<AnnotationMirror, Void>() { public AnnotationMirror visitAnnotation( AnnotationMirror a, Void p ) { return a; } ; @Override protected AnnotationMirror defaultAction(Object o, Void p) { throw new IllegalArgumentException( String.format("Could not convert %s to AnnotationMirror", annotationValue)); } }, null)); } return mirrors.build(); }