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.
-
Disable(char)
- Disable the specified character.
-
Enable(char)
- Enable the specified character.
-
IsEnabled(char)
- Query if a particular character is enabled
-
print(char, String)
- Print a debug message
-
println(char, String)
- Print a debug message followed by a newline
-
SetEnabled(String)
- Set the set of enable characters to precisely those specified.
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
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
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
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
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
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