Are you looking for



Thread.currentThread().getStackTrace();


This will return an array of [StackTraceElement]s.