петък, 31 октомври 2008 г.

Get class and method name of calling class


new Throwable().fillInStackTrace().getStackTrace()[1].getClassName()
new Throwable().fillInStackTrace().getStackTrace()[1].getMethodName()
new Throwable().fillInStackTrace().getStackTrace()[1].getLineNumber()

Няма коментари: