public static void read(Swagger swagger, Map<Class<?>, Object> interfaceMapRef,
                            String httpContext) {
        final Reader reader = new Reader(swagger);
        List<Entry<Class<?>, Object>> arrayList = new ArrayList<Entry<Class<?>, Object>>(interfaceMapRef.entrySet());
        Collections.sort(arrayList, new Comparator<Entry<Class<?>, Object>>() {
            @Override
            public int compare(Entry<Class<?>, Object> o1, Entry<Class<?>, Object> o2) {
                return o1.getKey().getSimpleName().compareTo(o2.getKey().getSimpleName());
            }
        });
        for (Entry<Class<?>, Object> entry : arrayList) {
            final ReaderContext context = new ReaderContext(swagger,
                entry.getValue().getClass(), entry.getKey(), httpContext, null, false,
                new ArrayList<String>(), new ArrayList<String>(), new ArrayList<String>(),
                new ArrayList<Parameter>());
            reader.read(context);
        }
    }
Scans a set of classes for Swagger annotations.

@param swagger is the Swagger instance
@param classes are a set of classes to scan
doc-swagger/src/main/java/com/alipay/sofa/rpc/doc/swagger/generate/Reader.java