// Path: QuickProject-Util/src/main/java/chanedi/util/StringUtils.java
// public class StringUtils extends org.apache.commons.lang3.StringUtils {
// 
//     public static String capitalizeCamelBySeparator(String str, String separatorChars) {
//         if (str == null || str.length() == 0) {
//             return str;
//         }
//         String[] splits = str.toLowerCase().split(separatorChars);
//         StringBuffer result = new StringBuffer();
//         for (String split : splits) {
//             result.append(capitalize(split));
//         }
//         return result.toString();
//     }
// 
//     public static String uncapitalizeCamelBySeparator(String str, String separatorChars) {
//         return uncapitalize(capitalizeCamelBySeparator(str, separatorChars));
//     }
// 
// }


import chanedi.util.StringUtils;
import java.util.HashMap;
package chanedi.generator.log;



/**
 * Created by jijingyu625 on 2016/5/2.
 */
class MethodToLog extends HashMap {

    private String methodName;

    public MethodToLog(String returnType, String methodName, String argStr) {
        if (returnType.contains("List")) {
            put("isList", true);
        } else {
            put("isList", false);
        }
        put("methodName", methodName);
        String[] argNames = argStr.split(",");
        for (int i = 0; i < argNames.length; i++) {
            String[] arg = argNames[i].split(" ");
            argNames[i] = arg[arg.length - 1];
        }
// Path: QuickProject-Util/src/main/java/chanedi/util/StringUtils.java
// public class StringUtils extends org.apache.commons.lang3.StringUtils {
// 
//     public static String capitalizeCamelBySeparator(String str, String separatorChars) {
//         if (str == null || str.length() == 0) {
//             return str;
//         }
//         String[] splits = str.toLowerCase().split(separatorChars);
//         StringBuffer result = new StringBuffer();
//         for (String split : splits) {
//             result.append(capitalize(split));
//         }
//         return result.toString();
//     }
// 
//     public static String uncapitalizeCamelBySeparator(String str, String separatorChars) {
//         return uncapitalize(capitalizeCamelBySeparator(str, separatorChars));
//     }
// 
// }


// Path: QuickProject-Generator/src/main/java/chanedi/generator/log/MethodToLog.java
import chanedi.util.StringUtils;
import java.util.HashMap;

package chanedi.generator.log;



/**
 * Created by jijingyu625 on 2016/5/2.
 */
class MethodToLog extends HashMap {

    private String methodName;

    public MethodToLog(String returnType, String methodName, String argStr) {
        if (returnType.contains("List")) {
            put("isList", true);
        } else {
            put("isList", false);
        }
        put("methodName", methodName);
        String[] argNames = argStr.split(",");
        for (int i = 0; i < argNames.length; i++) {
            String[] arg = argNames[i].split(" ");
            argNames[i] = arg[arg.length - 1];
        }
        put("isEmptyArgs", StringUtils.isEmpty(argStr));