コードのみ示します。
public static final String getCurrnetMethodName(){
return Thread.currentThread().getStackTrace()[2].getMethodName(); // 2 is a magic number... sorry joking ;)
}
コメント