简体   繁体   English

getMethods(),java

[英]getMethods(), java

In java, the method 'Class.getMethods()' returns an array of all the methods in the reciever class and also its superclasses. 在java中,方法'Class.getMethods()'返回接收器类及其超类中所有方法的数组。 Is there such a method like Class.getMethods() which only give us the class's methods, without those which are inhereted from its superclasses? 是否有类似Class.getMethods()这样的方法只给我们类的方法,没有那些从其超类中得到的方法?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM