All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class debug.Debug

java.lang.Object
   |
   +----debug.Debug

public class Debug
extends Object
Debug message system. This class supports printing of selectable debugging messages. All debugging messages are associated with a character identifier. This character is passed to the printing methods, and the set of characters which are enabled can be adjusted dynamically.


Method Index

 o Disable(char)
Disable the specified character.
 o Enable(char)
Enable the specified character.
 o IsEnabled(char)
Query if a particular character is enabled
 o print(char, String)
Print a debug message
 o println(char, String)
Print a debug message followed by a newline
 o SetEnabled(String)
Set the set of enable characters to precisely those specified.

Methods

 o Enable
 public static void Enable(char type)
Enable the specified character. Does not affect other enabled characters

Parameters:
type - the debug message class to enable
 o Disable
 public static void Disable(char type)
Disable the specified character. Does not affect other enabled characters

Parameters:
type - the debug message class to disable
 o SetEnabled
 public static void SetEnabled(String types)
Set the set of enable characters to precisely those specified.

Parameters:
types - the string of debug message classes to enable
 o IsEnabled
 public static boolean IsEnabled(char type)
Query if a particular character is enabled

Parameters:
type - the class of debug message to check
Returns:
s true if and only if the messages for that class are enabled
 o print
 public static void print(char type,
                          String s)
Print a debug message

Parameters:
type - the class for this message
s - the message to print
 o println
 public static void println(char type,
                            String s)
Print a debug message followed by a newline

Parameters:
type - the class for this message
s - the message to print

All Packages  Class Hierarchy  This Package  Previous  Next  Index