java经过反射得到当前运行的类名和方法名

java经过反射得到当前运行的类名和方法名:java public class MethodName {  public static void getMethod(){   Throwable t=new Throwable();   StackTraceElement[] st=t.getStackTrace();   System.out.println("共有:"+st.length);
相关文章
相关标签/搜索