通过字节码获取到的方法


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.



猜你喜欢

转载自www.cnblogs.com/shanshen/p/9821216.html