common_code/src/main/java/com/xiongyingqi/utils/code/CodeProcessor.java
private void checkClass() {
        Matcher findClassMatcher = PATTERN_FIND_CLASS_SEGMENT.matcher(content);

        if (findClassMatcher.find()) {
            final String classDefine = findClassMatcher.group();// 查找类定义

            String classDefineReplace = checkSuperClass(classDefine);
            classDefineReplace = checkInterfaces(classDefineReplace);
            content = StringHelper.replaceFirst(content, classDefine, classDefineReplace);
        }
    }
private void checkClass() {
        Matcher findClassMatcher = PATTERN_FIND_CLASS_SEGMENT.matcher(content);

        if (findClassMatcher.find()) {
            final String classDefine = findClassMatcher.group();// 查找类定义

            String classDefineReplace = checkSuperClass(classDefine);
            classDefineReplace = checkInterfaces(classDefineReplace);
            content = StringHelper.replaceFirst(content, classDefine, classDefineReplace);
        }
    }
private void checkClass ( ) { Matcher findClassMatcher = PATTERN_FIND_CLASS_SEGMENT . matcher ( content ) ; if ( findClassMatcher . find ( ) ) { final String classDefine = findClassMatcher . group ( ) ; // 查找类定义 String classDefineReplace = checkSuperClass ( classDefine ) ; classDefineReplace = checkInterfaces ( classDefineReplace ) ; content = StringHelper . replaceFirst ( content , classDefine , classDefineReplace ) ; } }
检查class定义段
检查class定义段