Code example for Map

Methods: size

0
    private void process(Params p) throws IOException {
        AsmAnalyzer aa = new AsmAnalyzer();
        Map<String, ClassReader> classes = aa.parseInputJar(p.getInputJarPath());
 
        Logger log = new Logger(p.isVerbose());
        log.info("Classes loaded: %d", classes.size());
 
        aa.filter(classes, p.getFilter(), log);
        log.info("Classes filtered: %d", classes.size());
 
        // dump as Java source files, mostly for debugging 
        if (p.isDumpSource()) {
            SourceGenerator src_gen = new SourceGenerator(log);
            File dst_src_dir = new File(p.getOutputJarPath() + "_sources");
            dst_src_dir.mkdir();
            src_gen.generateSource(dst_src_dir, classes, p.getFilter());
        } 
 
        // dump the stubbed jar 
        StubGenerator stub_gen = new StubGenerator(log);
        File dst_jar = new File(p.getOutputJarPath());
        stub_gen.generateStubbedJar(dst_jar, classes, p.getFilter());
    } 
}