dis java_在java中,我们可以使用javap disassembeler探索java类,方法.如何在c中做同样的事情?...

I just wanna know that in java we were able to explore a java class methods by using javap, how to do the same in c++ ???

你真的无法获得任何有用的东西.对于C程序集,您可以获得的最好的名称是错误的名称. Java在.class文件中存储类的所有方法签名,因此可以引用和引用它们.但是C编译成汇编,它适用于内存地址和堆栈以及其他较低级别的东西.

Suppose, I wanted to see all the methods of String class in java, I would have used javap by which all its methods, their return type, their number of arguments & their data type etc, are displayed.

How to do the same in c++ ???

或者您可以阅读该库的文档.您可以使用C库执行相同操作:阅读文档.这就是它的用途.或者通读库的标题,因为每个C库都有.

Also is there a command line way to explore what all packages & classes are there in a particular package in java language ???

对于Java,您之前提到过javap.你去:)

对于C,这实际上取决于您正在使用的编译器工具链.例如,Microsoft Visual C具有dumpbin CLI工具,可以提供大量信息.但同样,您只能获得损坏的名称,这可能会也可能不会反映程序使用的命名空间和类的结构.

Suppose java** java.awt.* or any such method to know all the packages & classes inside a particular package.

大多数此类信息(方法,类,名称空间(或Java中的包))都可以从相关库的任何文档中学习.如果你想要源代码,那么你可以免费获得它(对于开源项目),从库供应商处购买(用于闭源项目),或者只是使用文档.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值