src/main/java/com/itfsw/mybatis/generator/plugins/utils/JavaElementGeneratorTools.java
public static Method generateGetterMethod(Field field) {
        Method method = generateMethod(
                "get" + FormatTools.upFirstChar(field.getName()),
                JavaVisibility.PUBLIC,
                field.getType()
        );
        return generateMethodBody(method, "return this." + field.getName() + ";");
    }
public static Method generateGetterMethod(Field field) {
        Method method = generateMethod(
                "get" + FormatTools.upFirstChar(field.getName()),
                JavaVisibility.PUBLIC,
                field.getType()
        );
        return generateMethodBody(method, "return this." + field.getName() + ";");
    }
public static Method generateGetterMethod ( Field field ) { Method method = generateMethod ( "get" + FormatTools . upFirstChar ( field . getName ( ) ) , JavaVisibility . PUBLIC , field . getType ( ) ) ; return generateMethodBody ( method , "return this." + field . getName ( ) + ";" ) ; }
生成Filed的Get方法
@param field field
@return
生成Filed的Get方法