src/org/nutz/lang/Code.java
public static CodeStatisticsResult countingCode(File src,
                                                    String suffix,
                                                    boolean countSubFolder,
                                                    CodeAnalysisConf conf) {
        if (!Files.isDirectory(src)) {
            throw new RuntimeException("src is not a File, can't analysis it.");
        }
        if (null == conf) {
            conf = CODE_INFO_JAVA;
        }
        CodeStatisticsResult statisticsResult = new CodeStatisticsResult(src);
        boolean useParticularType = !Strings.isBlank(suffix);
        folderAnalysis(src,
                       useParticularType,
                       suffix,
                       countSubFolder,
                       conf,
                       statisticsResult);
        return statisticsResult;
    }
public static CodeStatisticsResult countingCode(File src,
                                                    String suffix,
                                                    boolean countSubFolder,
                                                    CodeAnalysisConf conf) {
        if (!Files.isDirectory(src)) {
            throw new RuntimeException("src is not a File, can't analysis it.");
        }
        if (null == conf) {
            conf = CODE_INFO_JAVA;
        }
        CodeStatisticsResult statisticsResult = new CodeStatisticsResult(src);
        boolean useParticularType = !Strings.isBlank(suffix);
        folderAnalysis(src,
                       useParticularType,
                       suffix,
                       countSubFolder,
                       conf,
                       statisticsResult);
        return statisticsResult;
    }
统计某个目录下，以特定后缀名结尾的源码信息。

@param src
源代码目录
@param suffix
文件后缀（为空的话，则统计所有类型文件）
@param countSubFolder
是否统计子文件夹(true的话，将递归统计所有子文件夹)
@param conf
代码分析配置项(为空的话，则按照JAVA代码来进行分析统计)