common_code/src/main/java/com/xiongyingqi/utils/code/CodeProcessor.java
private void checkCodeFragment() {
        Matcher matcher = PATTERN_FIND_CLASS_SEGMENT.matcher(content);
        if (matcher.find()) {
            final String classDefine = matcher.group();
            StringBuilder builder = new StringBuilder(classDefine);
            for (String codeFragment : this.builder.getCodeFragments()) {
                builder.append(StringHelper.line());
                builder.append(codeFragment);
            }
            content = StringHelper.replaceFirst(content, classDefine, builder.toString());
        }
    }
private void checkCodeFragment() {
        Matcher matcher = PATTERN_FIND_CLASS_SEGMENT.matcher(content);
        if (matcher.find()) {
            final String classDefine = matcher.group();
            StringBuilder builder = new StringBuilder(classDefine);
            for (String codeFragment : this.builder.getCodeFragments()) {
                builder.append(StringHelper.line());
                builder.append(codeFragment);
            }
            content = StringHelper.replaceFirst(content, classDefine, builder.toString());
        }
    }
---------------------------------------- 代码段 ----------------------------------------