com.metsci.glimpse.util
Class StackTraceUtils

java.lang.Object
  extended by com.metsci.glimpse.util.StackTraceUtils

public class StackTraceUtils
extends java.lang.Object

Utilities for examining stack traces at any point during program execution.

Author:
moskowitz

Method Summary
static java.lang.String getCaller()
          Name of caller for debug/trace/logging purposes.
static java.lang.String getCallers(int nBack)
          Names of callers for debug/trace/logging purposes.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCaller

public static java.lang.String getCaller()
Name of caller for debug/trace/logging purposes.

Returns:
Information String about caller suitable for logging.

getCallers

public static java.lang.String getCallers(int nBack)
Names of callers for debug/trace/logging purposes.

Parameters:
nBack - how far up the stack to go (should be >=1)
Returns:
Information String about callers (up the stack) suitable for logging.


Copyright © 2012 Metron, Inc.. All Rights Reserved.