nu.dll.lyskom
Class Debug
java.lang.Object
|
+--nu.dll.lyskom.Debug
- public class Debug
- extends java.lang.Object
Helper class to aid debug tracing. The println() and print() methods has
no effect unless the system property "lattekom.debug" is set to "true".
Field Summary |
static boolean |
ENABLED
true iff the "lattekom.debug" system property is non-null and equal to "true". |
Constructor Summary |
Debug()
|
Method Summary |
static java.lang.String |
getPropertyKey()
|
static void |
print(java.lang.String msg)
Prints a message to stderr if ENABLED is true. |
static void |
println(java.lang.String msg)
Prints a message to stderr if ENABLED is true,
terminating with a linefeed. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENABLED
public static boolean ENABLED
- true iff the "lattekom.debug" system property is non-null and equal to "true".
Debug
public Debug()
println
public static void println(java.lang.String msg)
- Prints a message to stderr if ENABLED is true,
terminating with a linefeed.
print
public static void print(java.lang.String msg)
- Prints a message to stderr if ENABLED is true.
getPropertyKey
public static java.lang.String getPropertyKey()