美文网首页
获取当前类名

获取当前类名

作者: 白纸糊 | 来源:发表于2019-03-11 16:06 被阅读0次

    适用于非静态方法:this.getClass().getName()
    适用于静态方法:Thread.currentThread().getStackTrace()[1].getClassName()

    相关文章

      网友评论

          本文标题:获取当前类名

          本文链接:https://www.haomeiwen.com/subject/fnebpqtx.html