一个jd-gui的注释清理工具

 jd-gui-cleaner
清除jd-gui反编译后注释的工具
图形界面,操作方便
在java环境下双击运行
运行后,先点input,选择源文件文件夹,再点output,选择输出文件文件夹,最后点start运行。
运行后会将所有源文件夹中的文件处理后保存到输出文件夹中,并处理且只处理.java文件

原理很简单,用java的正则表达式清理每个文件中的jd相关的注释

开发中发现java的正则表达式经常内存溢出,在国外网站中发现这是java的原因,建议不要使用“选择重复”的表达式,即:(A|B)*

有需要的同学,请到下面下载:

http://download.csdn.net/user/ranjio_z

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
C代码注释删除工具,用Lex生成。可删除C源程序中的/* xxxx */的块或单行注释,及C++风格的单行注释,对于常量字符串中出现的注释清除。文件包含Lex代码及编译的Linux下的可执行文件。编译及使用见Readme。 C注释的类型如下 // /* // * "C-style block comment be removed // * C-style block comment be removed" // * C-style block comment be removed // */ // // /* C-style single line comment be removed */ // // // c++ comment be removed // // ///* c++ comment be removed */ // c++ comment be removed // // // c++ comment enclosed with double-quote untouched // "////*\"c++ comment enclosed with double-quote untouched\" ##*/\n" // // // c-style single line comment enclosed with double-quote untouched // "/*c-style multiple line comment enclosed with double-quote untouched*/\n" // // // c-style multiple line comment enclosed with double-quote untouched // "/** c-style multiple line comment enclosed with double-quote untouched \n\ // \n next line\ // */\n" 示例文件: int main() { /* * "C-style block comment be removed * C-style block comment be removed" * C-style block comment be removed */ /* C-style single line comment be removed */ int foo; /* C-style single line comment be removed */ /* C-style single line comment be removed */ int bar; int foobar; /* "C-style block comment be removed C-style block comment be removed C-style block comment be removed */ // c++ comment be removed ///* c++ comment be removed */ // c++ comment be removed // "////" ???? // "/*test file */" ????? /* ssss /* dddd */ printf("////*\"c++ comment enclosed with double-quote untouched\" ##*/\n"); // c++ comment enclosed with double-quote untouched printf("/*c-style multiple line comment enclosed with double-quote untouched*/\n"); // c-style single line comment enclosed with double-quote untouched // printf("/** test cmnt \n //\n ss //*/"); printf("/** c-style multiple line comment enclosed with double-quote untouched \n\ \n next line\ */\n"); // c-style multiple line comment enclosed with double-quote untouched } 注释删除后成为: int main() { int foo; int bar; int foobar; printf("////*\"c++ comment enclosed with double-quote untouched\" ##*/\n"); printf("/*c-style multiple line comment enclosed with double-quote untouched*/\n"); printf("/** c-style multiple line comment enclosed with double-quote untouched \n\ \n next line\ */\n"); }
JD-GUI是一款用于反编译Java字节码的工具,可将Java字节码转换为可读的Java源代码。使用JD-GUI可以帮助我们理解和学习优秀的Java应用程序或库的实现方式。 要下载JD-GUI工具,我们可以按照以下步骤操作: 首先,我们可以打开浏览器并在搜索引擎中输入“JD-GUI下载”等关键词进行搜索。在搜索结果中,我们会找到多个可供下载的来源。 然后,我们可以选择一个可靠的下载源,并点击进入相应的官方网站或第三方下载站点。在网站上,我们可以找到提供JD-GUI工具的下载链接。 接下来,我们可以点击下载链接,选择适合自己系统环境的版本进行下载。JD-GUI工具通常提供了多个平台的安装包,如Windows、Mac和Linux等。 下载完成后,我们可以在下载目录找到下载好的安装包。对于Windows系统,我们可以双击执行安装包,然后按照安装向导的指示进行安装。 安装完成后,我们就可以在电脑上找到并打开JD-GUI工具。在打开的界面中,我们可以选择要反编译的Java字节码文件,然后点击“打开”按钮。 JD-GUI会将选定的字节码文件转换为可读的Java源代码,并在界面中展示出来。我们可以浏览源代码,查看类、方法和变量等信息。 通过以上步骤,我们可以顺利地下载和使用JD-GUI工具。它是一款非常实用的工具,可以帮助我们研究和理解Java应用程序的实现细节。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值