取得到当前方法及类的名字Thread.currentThread().getStackTrace()[0].getClassName()

获得到当前方法及类的名字Thread.currentThread().getStackTrace()[0].getClassName()获得到当前方法及类

获得到当前方法及类的名字Thread.currentThread().getStackTrace()[0].getClassName();

获得到当前方法及类的名字:

?

Thread.currentThread().getStackTrace()[0].getClassName();

?

Thread.currentThread().getStackTrace()[1].getClassName();