Java的反射器? [英] Reflector for Java?

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

问题描述

是否有相当于 .NET Reflector 的Java?



编辑:更具体地说,反编译就是我所追求的。

解决方案

据我所知,.NET Reflector的功能几乎可用于所有Java IDE,包括Eclipse。只需将 jar 文件添加到项目中,就可以在浏览自己的类时浏览其类。



对于反编译器方面(与纯类浏览器相对),也有一些替代方案。 JDK工具 javap 只能反编译为字节码,因此获取源代码并不是很有用(但可能有助于理解代码)。 / p>

JAD 是一个Java世界中非常流行的反编译器,它在大多数情况下生成可编译的Java代码(有些字节码序列不容易转换为有效的Java',因此存在一些极端情况)。


Is there a Java equivalent to .NET Reflector?

Edit: more specifically, decompiling is what I'm after.

解决方案

From what little I know the functionality of .NET Reflector is available in pretty much all Java IDEs, including Eclipse. Just add a jar file to a projects and you can browse its classes just as you browse your own classes.

For the decompiler aspect (as opposed to the pure class browser) there are some alternatives as well. The JDK tool javap only decompiles to byte-code so it isn't really useful to get to the source code (but might help with getting an understanding of the code).

JAD is a pretty popular decompiler in the Java world and it produces compilable Java code most of the time (some bytecode sequences aren't easily translatable to valid Java 'though, so some corner cases exist).

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

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