org.tigris.gef.util
Class Dbg

java.lang.Object
  extended byorg.tigris.gef.util.Dbg

Deprecated. 0.10 in favour of log4j package

public class Dbg
extends java.lang.Object

This is a useful utility for debugging. In various places in the framework there are calls to Dbg.log(). If the proper -D defines are supplied when running the application those debugging statements will be enabled or disabled.


Field Summary
static VectorSet guards
          Deprecated.  
static boolean on
          Deprecated.  
 
Constructor Summary
Dbg()
          Deprecated.  
 
Method Summary
static void assertTrue(boolean cond, java.lang.String msg)
          Deprecated.  
static void log(java.lang.String guard, boolean cond, java.lang.String msg)
          Deprecated. Print the given message if the guard was defined with a command line -D option and the given condition evaluates to true.
static void log(java.lang.String guard, java.lang.String msg)
          Deprecated. Print the given message if the guard was defined with a command line -D option.
static void log(java.lang.String guard, java.lang.Throwable t)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

on

public static final boolean on
Deprecated. 
See Also:
Constant Field Values

guards

public static final VectorSet guards
Deprecated. 
Constructor Detail

Dbg

public Dbg()
Deprecated. 
Method Detail

assertTrue

public static final void assertTrue(boolean cond,
                                    java.lang.String msg)
Deprecated. 

log

public static final void log(java.lang.String guard,
                             java.lang.String msg)
Deprecated. 
Print the given message if the guard was defined with a command line -D option.


log

public static final void log(java.lang.String guard,
                             java.lang.Throwable t)
Deprecated. 

log

public static final void log(java.lang.String guard,
                             boolean cond,
                             java.lang.String msg)
Deprecated. 
Print the given message if the guard was defined with a command line -D option and the given condition evaluates to true.