Java重构工具 [英] Java refactoring tools

查看:815
本文介绍了Java重构工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

像ReSharper这样的工具,但是用于Java?





我非常重视Eclipse提供的Java代码重构工具(提取界面,重命名方法等)。有没有人知道其他类似的工具(最好是Eclipse插件),可以执行默认情况下在Eclipse中不可用的Java代码重构,或者可以更好地执行相同的重构?

I make very heavy use of the Java code refactoring tools provided by Eclipse (extract interface, rename method, etc.). Does anyone knows of other similar tools (preferably Eclipse plugins) that can perform Java code refactorings that are not available in Eclipse by default, or that can perform the same refactorings better?

我知道可以识别需要重构的代码(例如FindBugs,UCDetector)的各种Eclipse插件,但是我正在寻找可以实际重构的工具。

I'm aware of various Eclipse plugins that can identify code in need of refactoring (e.g. FindBugs, UCDetector), but I'm looking for tools that can actually do the refactoring.

推荐答案

RefactorIT ...可作为独立产品和Eclipse插件使用。只有对于非开放源码项目,您才被限制为50个类(但可以通过拆分为多个Eclipse项目并使用依赖关系来解决)。
RefactorIT还具有代码生成工具,如封装字段,您可以在包视图(无论何处)中选择(多个)字段,并自动创建getter和/或setter,对构造函数也是同样的事情...
很棒的工具!

RefactorIT... Is available as standalone product and Eclipse plugin. Only con is that for non-open source projects you are limited to 50 classes (but can get around that by splitting into multiple Eclipse projects, and using dependencies). RefactorIT also has code generation tools, like 'Encapsulate Field', where you select (multiple) fields in the package view (wherever) and it automatically creates getters and/or setters, also same thing for Constructors... Great tool!

这篇关于Java重构工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆