public static String currentMethod ( ) { StackTraceElement [ ] ste = new Exception ( ) . getStackTrace ( ) ; int ndx = ( ste . length > 1 ) ? 1 : 0 ; return new Exception ( ) . getStackTrace ( ) [ ndx ] . toString ( ) ; }
Returns current method signature .