继承的深度 [英] Depth of Inheritance

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

问题描述

我需要一个java程序来查找java程序的继承深度源代码作为输入文件给出:)

可以any1帮我解决这个问题

如果是这样:)感谢提前帮助

解决方案

@ chrisjohn2009


你在谈论继承水平吗?
然后不需要拥有源文件,而是需要所有依赖类的类文件。

现在看看班级

然后看看< a rel =nofollowhref =http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Class.html#getSuperclass()target =_ blank> Class.getSuperClass 。


先生,

可以帮我解释一下我的细节p l ...


先生,

我正在做质量指标的博士工作。所以基本上我正在开发一个工具来检查类,元素,继承和数量的数量。在给定的源代码中继承的级别,比如morilla firefox,rhino ......


我可以帮助我解决这个先生... pl

谢谢提前回复....&指导

I need a java program to find the Depth of Inheritance of a java program source code is given as input file :)
Can any1 help me out with this
If so:) Thanks in Advance for Helping

解决方案

@chrisjohn2009
Are you talking about level of inheritance?
Then no need to have the source file, instead you need Class files of all the dependent classes.
Now have a look at Class.
Then look at Class.getSuperClass.


Sir,
could u help me out by explaining me a little bit in detail pl...


Sir,
i''m doing a Phd work on quality metrics . So basically i''m developing a tool for just checking out the number of classes,elements,inheritances & level of inheritance in a given source code like of morilla firefox ,rhino...

could me help me out with this sir... pl
Thanks in Advance for reply....& Guidance


这篇关于继承的深度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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