码迷,mamicode.com
首页 > 其他好文 > 详细

通过字节码获取到的方法

时间:2018-10-20 12:56:51      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:eth   etc   span   pre   通过   getname   int   test   .class   


1.
Method[] methods = Yuitest.class.getMethods();
for (Method method:methods){
System.out.println( method.getName());
}
2.
Yuitest yuitest =new Yuitest();
Method[] methods = yuitest.getClass().getMethods();
for (Method method:methods){
System.out.println( method.getName());
}
3.



通过字节码获取到的方法

标签:eth   etc   span   pre   通过   getname   int   test   .class   

原文地址:https://www.cnblogs.com/shanshen/p/9821216.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!