uci.util
Class Dbg

java.lang.Object
  |
  +--uci.util.Dbg

public class Dbg
extends 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
           
static boolean on
           
 
Constructor Summary
Dbg()
           
 
Method Summary
static void assert(boolean cond, String msg)
           
static void log(String guard, boolean cond, String msg)
          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(String guard, String msg)
          Print the given message if the guard was defined with a command line -D option.
static void log(String guard, Throwable t)
           
 
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

guards

public static final VectorSet guards
Constructor Detail

Dbg

public Dbg()
Method Detail

assert

public static final void assert(boolean cond,
                                String msg)

log

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

log

public static final void log(String guard,
                             Throwable t)

log

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