csli.util
Class CallDetective

java.lang.Object
  extended by csli.util.CallDetective

public class CallDetective
extends Object

Returns a caller function


Constructor Summary
CallDetective()
           
 
Method Summary
static String findCaller()
          Returns the name and line number of the function which called the present one.
static String findCaller(int depth)
          Returns the name and line number of n-th of the caller function.
static void foo()
           
static void main(String[] args)
           
static void printFn()
          Prints out the function information
static void printFn(Object o)
          Prints out function information as well as the speicified object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallDetective

public CallDetective()
Method Detail

findCaller

public static String findCaller()
Returns the name and line number of the function which called the present one.

Returns:

findCaller

public static String findCaller(int depth)
Returns the name and line number of n-th of the caller function. 0 is the current function, 1 is the immediate caller etc.

Parameters:
depth -
Returns:

main

public static void main(String[] args)

foo

public static void foo()

printFn

public static void printFn()
Prints out the function information


printFn

public static void printFn(Object o)
Prints out function information as well as the speicified object

Parameters:
o -