ch.javasoft.lang.reflect
Class StackTrace

java.lang.Object
  extended by ch.javasoft.lang.reflect.StackTrace

public class StackTrace
extends Object

The StackTrace class determines the StackTraceElement of any of the calling methods.


Method Summary
static StackTraceElement getCurrentMethodStackTraceElement()
          Returns the stack trace element belonging to the direct caller method, that is the method which invokes this method.
static StackTraceElement getCurrentMethodStackTraceElement(int callerOffset)
          Returns the stack trace element belonging to the callerOffsetth caller of the calling method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCurrentMethodStackTraceElement

public static StackTraceElement getCurrentMethodStackTraceElement()
Returns the stack trace element belonging to the direct caller method, that is the method which invokes this method.


getCurrentMethodStackTraceElement

public static StackTraceElement getCurrentMethodStackTraceElement(int callerOffset)
Returns the stack trace element belonging to the callerOffsetth caller of the calling method.

Parameters:
callerOffset - The index of the caller of the method which invokes this method