public String toString(){
        StringBuilder code = new StringBuilder();
        code.append("package ").append(packageName).append(";\n");

        for (String importName : importNameList) {
            code.append("import ").append(importName).append(";\n");
        }

        code.append(classDefinition).append(" {\n");

        for (String methodCode : methodCodeList) {
            code.append(methodCode);
        }

        code.append("}");

        return code.toString();
    }
@author Robert HG (254963746@qq.com) on 4/2/16.
lts-core/src/main/java/com/github/ltsopensource/core/support/bean/JavaSourceBean.java