All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.diboot.devtools.v2.OOOO0O00OO0OOOOO Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (c) dibo.ltd, https://www.dibo.ltd, https://www.diboot.com
 * 

* ---- 版权声明 ---- * Diboot相关商标、软件著作权、专利等全部知识产权隶属于苏州帝博信息技术有限公司。 * Diboot devtools 非开源项目,如您有devtools相关定制化需求,请至官网(https://www.dibo.ltd)联系帝博信息商务。 * * 《中华人民共和国刑法》规定:破坏计算机信息系统罪,处五年以下有期徒刑或者拘役;后果特别严重的,处五年以上有期徒刑。 * 侵犯知识产权罪:处三年以下有期徒刑、拘役或管制,并处罚金;情节特别严重的,处三年以上七年以下有期徒刑,并处罚金。 * * 任何尝试破解、破坏devtools、侵犯diboot知识产权的行为,我们将不惜一切代价追究到底! *

*/ package com.diboot.devtools.v2; import com.diboot.core.util.S; import com.diboot.core.util.V; import lombok.extern.slf4j.Slf4j; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Set; import java.util.regex.Matcher; import java.util.regex.Pattern; @Slf4j @Deprecated() public class OOOO0O00OO0OOOOO { @Deprecated() public static String l11lllll1l1lll1(O0O0OO000000OOO0 l1llllll1l1l, Set l1l11ll1111l) { List l1l11lll11l1 = new ArrayList<>(); if (l1llllll1l1l.l11l11l1ll1ll11()) { String ll11l11ll111 = OO00O00O0O00O000.llll1l1l1l11l1l(l1llllll1l1l.getExecuteSqlAction()); if (V.notEmpty(ll11l11ll111)) { l1l11lll11l1.add(ll11l11ll111); } } if (V.notEmpty(l1llllll1l1l.getGenerateFileActions())) { l1llllll1l1l.getGenerateFileActions().forEach(l11l1l11ll1l -> { if (l1l11ll1111l == null || l1l11ll1111l.contains(l11l1l11ll1l.getKey()) == false) { String ll11l11ll111 = O00OO00000OO000O.llll1l1l1l11l1l(l11l1l11ll1l); if (V.notEmpty(ll11l11ll111)) { l1l11lll11l1.add(ll11l11ll111); } } }); } if (V.notEmpty(l1l11lll11l1)) { return S.join(l1l11lll11l1); } return null; } @Deprecated() public static void l111lll1l1ll11l(O0O0OO000000OOO0 llll1l1llll1, Map lll1ll1l11l1, OOOOO00OOOO0OOOO l11lllllll11) { if (V.isEmpty(llll1l1llll1.getGenerateFileActions())) { return; } llll1l1llll1.getGenerateFileActions().forEach(l11l11lll11l -> { String ll1ll1ll1l1l = lll1ll1l11l1.get(l11l11lll11l.getKey()); if (ll1ll1ll1l1l != null) { if (l11lllllll11 != null) { ll1ll1ll1l1l = S.replaceEach(ll1ll1ll1l1l, new String[] { OOO0OO00O00O00OO.l11llll1ll11ll1("e0NsYXNzTmFtZX0="), OOO0OO00O00O00OO.l11llll1ll11ll1("e0NsYXNzSW5zdE5hbWV9") }, new String[] { l11lllllll11.getClassName(), l11lllllll11.getClassInstName() }); } ll1ll1ll1l1l = ll1ll1ll1l1l.replaceAll("//", "/"); l11l11lll11l.setPath(ll1ll1ll1l1l); } }); } private final static Pattern l11l1111lll1l = Pattern.compile("\\$\\{([a-zA-Z0-9]+)\\}"); @Deprecated() public static void l111lll1l1ll11l(O0O0OO000000OOO0 ll1l1111l11l, OOOOO00OOOO0OOOO l11lll1l1ll1) { if (V.isEmpty(ll1l1111l11l.getGenerateFileActions())) { return; } ll1l1111l11l.getGenerateFileActions().forEach(ll1l11llll1l -> { l1lll1111l11l(ll1l11llll1l, l11lll1l1ll1); }); } @Deprecated() public static void l111lll1l1ll11l(O0O0OO000000OOO0 ll1l1lll1lll) { if (V.isEmpty(ll1l1lll1lll.getGenerateFileActions())) { return; } ll1l1lll1lll.getGenerateFileActions().forEach(lll1ll1l11l1 -> { l11llll1ll1ll(lll1ll1l11l1); }); } @Deprecated() public static void ll1l1ll11l1lll1(O0O0OO000000OOO0 ll11l11ll111, OOOOO00OOOO0OOOO l1111l1l1ll1) { if (V.isEmpty(ll11l11ll111.getGenerateFileActions())) { return; } ll11l11ll111.getGenerateFileActions().forEach(l1111l1llll1 -> { if (V.equals(l1111l1llll1.getGenerateType(), O00OO0000O000O0O.BACKED)) { l1lll1111l11l(l1111l1llll1, l1111l1l1ll1); } else if (V.equals(l1111l1llll1.getGenerateType(), O00OO0000O000O0O.FRONTEND)) { l11llll1ll1ll(l1111l1llll1); } else if (V.equals(l1111l1llll1.getGenerateType(), O00OO0000O000O0O.BACKED_STATISTIC_INIT)) { l1l11l11l11l1(l1111l1llll1); } else { log.warn(OOO0OO00O00O00OO.l11llll1ll11ll1("55Sf5oiQ57G75Z6L5Y+q6IO95Li644CQ5ZCO56uv44CB5YmN56uv44CB57uf6K6h44CR77yM5b2T5YmN55Sf5oiQ57G75Z6L5Li677yae30="), l1111l1llll1.getGenerateType()); } }); } @Deprecated() private static void l1lll1111l11l(OOO0O00OO00000O0 l1lll1111lll, OOOOO00OOOO0OOOO l1l11ll11l1l) { String lll1l1llll11 = ""; String l1l1111111ll = ""; String l1lllllll1l1 = ""; if (V.notEmpty(l1lll1111lll.getVariableCodePath()) && V.notEmpty(l1lll1111lll.getVariableFileNameTmpl())) { Matcher ll1111l1l11l = l11l1111lll1l.matcher(l1lll1111lll.getVariableCodePath()); Matcher l1l111l111ll = l11l1111lll1l.matcher(l1lll1111lll.getVariableFileNameTmpl()); while (ll1111l1l11l.find()) { l1l1111111ll = ll1111l1l11l.group(1); lll1l1llll11 = OO0O0OOOOO0O0O00.ll1ll11111l1ll.get(l1l1111111ll); break; } while (l1l111l111ll.find()) { l1lllllll1l1 = l1l111l111ll.group(1); break; } } String ll111l11l1ll = l1lll1111lll.getPath(); if (ll111l11l1ll != null) { if (l1l11ll11l1l != null) { if (V.notEmpty(l1l11ll11l1l.getModule())) { lll1l1llll11 = OO0O0OOOOO0O0O00.ll1l111l11l1lll(lll1l1llll11, l1l11ll11l1l.getModule()); } ll111l11l1ll = S.replaceEach(ll111l11l1ll, new String[] { S.join("${", l1l1111111ll, "}"), S.join("${", l1lllllll1l1, "}") }, new String[] { lll1l1llll11, l1l11ll11l1l.getClassName() }); ll111l11l1ll = ll111l11l1ll.replaceAll("//", "/"); } else { ll111l11l1ll = S.replaceEach(ll111l11l1ll, new String[] { S.join("${", l1l1111111ll, "}") }, new String[] { lll1l1llll11 }); ll111l11l1ll = ll111l11l1ll.replaceAll("//", "/"); } l1lll1111lll.setPath(ll111l11l1ll); } } @Deprecated() private static void l11llll1ll1ll(OOO0O00OO00000O0 llll111ll1ll) { Matcher l1llll1lllll = l11l1111lll1l.matcher(llll111ll1ll.getVariableCodePath()); String lllll1llll1l = ""; String lll111111ll1 = ""; while (l1llll1lllll.find()) { lll111111ll1 = l1llll1lllll.group(1); lllll1llll1l = OO0O0OOOOO0O0O00.ll1ll11111l1ll.get(lll111111ll1); break; } String ll111l1ll111 = llll111ll1ll.getPath(); if (ll111l1ll111 != null) { ll111l1ll111 = S.replaceEach(ll111l1ll111, new String[] { S.join("${", lll111111ll1, "}") }, new String[] { lllll1llll1l }); ll111l1ll111 = ll111l1ll111.replaceAll("//", "/"); llll111ll1ll.setPath(ll111l1ll111); } } @Deprecated() private static void l1l11l11l11l1(OOO0O00OO00000O0 l1l1l11l11ll) { String ll1l11111111 = ""; String lll1l1111l11 = ""; if (V.notEmpty(l1l1l11l11ll.getVariableCodePath()) && V.notEmpty(l1l1l11l11ll.getVariableFileNameTmpl())) { Matcher llll1ll1lll1 = l11l1111lll1l.matcher(l1l1l11l11ll.getVariableCodePath()); while (llll1ll1lll1.find()) { lll1l1111l11 = llll1ll1lll1.group(1); ll1l11111111 = OO0O0OOOOO0O0O00.ll1ll11111l1ll.get(lll1l1111l11); break; } } String l111l1ll1lll = l1l1l11l11ll.getPath(); if (l111l1ll1lll != null) { l111l1ll1lll = S.replaceEach(l111l1ll1lll, new String[] { S.join("${", lll1l1111l11, "}") }, new String[] { ll1l11111111 }); l111l1ll1lll = l111l1ll1lll.replaceAll("//", "/"); l1l1l11l11ll.setPath(l111l1ll1lll); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy