Java.debug
Class Debug

java.lang.Object
  extended by Java.debug.Debug

public class Debug
extends java.lang.Object

Debug printouts and error messages

Since:
1.0

Field Summary
static boolean ERROR
          Error messages on or off
static int MAX_WARNINGS
          Max number of printed out warnings, default 5
static boolean ON
          Debug printouts on or off
static boolean WARNING
          Warning messages on or off
 
Constructor Summary
Debug()
           
 
Method Summary
static void constructor(java.lang.Object o)
          Debug printout from constructor
static void constructor(java.lang.Object o, java.lang.String msg)
          Debug printout from constructor
static void error(java.lang.Object o, java.lang.String method)
          Error message and program termination
static void error(java.lang.Object o, java.lang.String method, java.lang.String msg)
          Error message and program termination
static void print(java.lang.Object o, java.lang.String method)
          Debug printout
static void print(java.lang.Object o, java.lang.String method, java.lang.String msg)
          Debug printout
static void stat(java.lang.String cl, java.lang.String method)
          Debug printout from static environment
static void stat(java.lang.String cl, java.lang.String method, java.lang.String msg)
          Debug printout from static environment
static void staterror(java.lang.String cl, java.lang.String method)
          Error message and program terminationca
static void staterror(java.lang.String cl, java.lang.String method, java.lang.String msg)
          Error message and program termination
static void statwarning(java.lang.String cl, java.lang.String method)
          Warning message and program termination
static void statwarning(java.lang.String cl, java.lang.String method, java.lang.String msg)
          Warning message and program termination
static void warning(java.lang.Object o, java.lang.String method)
          Warning message and program termination
static void warning(java.lang.Object o, java.lang.String method, java.lang.String msg)
          Warning message and program termination
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ON

public static boolean ON
Debug printouts on or off


ERROR

public static boolean ERROR
Error messages on or off


WARNING

public static boolean WARNING
Warning messages on or off


MAX_WARNINGS

public static int MAX_WARNINGS
Max number of printed out warnings, default 5

Constructor Detail

Debug

public Debug()
Method Detail

print

public static void print(java.lang.Object o,
                         java.lang.String method)
Debug printout

Parameters:
o - object from which print out is called
method - method from which print out is called

print

public static void print(java.lang.Object o,
                         java.lang.String method,
                         java.lang.String msg)
Debug printout

Parameters:
o - object from which print out is called
method - method from which print out is called
msg - debug message

constructor

public static void constructor(java.lang.Object o)
Debug printout from constructor

Parameters:
o - object from which print out is called

constructor

public static void constructor(java.lang.Object o,
                               java.lang.String msg)
Debug printout from constructor

Parameters:
o - object from which print out is called
msg - debug message

stat

public static void stat(java.lang.String cl,
                        java.lang.String method)
Debug printout from static environment

Parameters:
cl - name of class from which print out is called
method - method from which print out is called

stat

public static void stat(java.lang.String cl,
                        java.lang.String method,
                        java.lang.String msg)
Debug printout from static environment

Parameters:
cl - name of class from which print out is called
method - method from which print out is called
msg - debug message

error

public static void error(java.lang.Object o,
                         java.lang.String method)
Error message and program termination

Parameters:
o - object from which error is called
method - method from which error is called

error

public static void error(java.lang.Object o,
                         java.lang.String method,
                         java.lang.String msg)
Error message and program termination

Parameters:
o - object from which error is called
method - method from which error is called
msg - errormessage

warning

public static void warning(java.lang.Object o,
                           java.lang.String method)
Warning message and program termination

Parameters:
o - object from which warning is called
method - method from which warning is called

warning

public static void warning(java.lang.Object o,
                           java.lang.String method,
                           java.lang.String msg)
Warning message and program termination

Parameters:
o - object from which warning is called
method - method from which warning is called
msg - warningmessage

staterror

public static void staterror(java.lang.String cl,
                             java.lang.String method)
Error message and program terminationca

Parameters:
cl - name of class from which error is called
method - method from which error is called

staterror

public static void staterror(java.lang.String cl,
                             java.lang.String method,
                             java.lang.String msg)
Error message and program termination

Parameters:
cl - name of class from which error is called
method - method from which error is called
msg - errormessage

statwarning

public static void statwarning(java.lang.String cl,
                               java.lang.String method)
Warning message and program termination

Parameters:
cl - name of class from which warning is called
method - method from which warning is called

statwarning

public static void statwarning(java.lang.String cl,
                               java.lang.String method,
                               java.lang.String msg)
Warning message and program termination

Parameters:
cl - name of class from which warning is called
method - method from which warning is called
msg - warningmessage