ilog.tgo.util
Class Trace

java.lang.Object
  extended by ilog.tgo.util.Trace

public class Trace
extends Object

This class contains debugging aids for tracing calls.


Field Summary
static boolean verbose
          Defines the verbosity of the tracer during static initialization.
 
Method Summary
static void BeginInit(Class clazz)
          Notifies the tracer that the static initializers of a class are about to be executed.
static void EndInit(Class clazz)
          Notifies the tracer that the static initializers of a class have finished being executed.
static void PrintStackTrace()
          Prints a backtrace of the stack.
static void PrintStackTrace(String message)
          Prints a backtrace of the stack, with a custom message.
static void TraceMethod(boolean printLineNumber, Object object)
          Prints the class, method and optionally the line number of the method that called TraceMethod(), plus the custom object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

verbose

public static boolean verbose
Defines the verbosity of the tracer during static initialization.

Method Detail

BeginInit

public static void BeginInit(Class clazz)
Notifies the tracer that the static initializers of a class are about to be executed.


EndInit

public static void EndInit(Class clazz)
Notifies the tracer that the static initializers of a class have finished being executed.


PrintStackTrace

public static void PrintStackTrace()
Prints a backtrace of the stack.


PrintStackTrace

public static void PrintStackTrace(String message)
Prints a backtrace of the stack, with a custom message.


TraceMethod

public static void TraceMethod(boolean printLineNumber,
                               Object object)
Prints the class, method and optionally the line number of the method that called TraceMethod(), plus the custom object. This method prints in the stream System.err.

Parameters:
printLineNumber - indicate if the line number should be printed or not. Note that depending on the VM, the line number can be available or not.
object - an additional object that is printed at the end of the line


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.