edu.stanford.hci.r3.util
Class DebugUtils
java.lang.Object
edu.stanford.hci.r3.util.DebugUtils
public class DebugUtils
- extends java.lang.Object
A utility for printing messages and seeing which file they originated from. This class will also
provide support for creating debug levels (not really implemented yet).
This software is distributed under the
BSD License.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DebugUtils
public DebugUtils()
getDebugPriorityMask
public static int getDebugPriorityMask()
- Returns:
- the debugPriorityMask
isDebugTraceOn
public static boolean isDebugTraceOn()
- Returns:
- the debugTrace
print
public static void print(java.lang.Object object)
- Parameters:
string
-
println
public static void println(java.lang.Object object)
- Parameters:
object
- the object to print out
println
public static void println(java.lang.Object object,
int debugPriority)
- Parameters:
object
- debugPriority
- an int that describes how important this message is. If it is greater than
debugPriorityMask, then it will be printed out. If it is less than debugLevel,
then it will be hidden.
printlnWithStackOffset
public static void printlnWithStackOffset(java.lang.Object object,
int additionalStackOffset)
- Parameters:
object
- additionalStackOffset
-
setDebugPriorityMask
public static void setDebugPriorityMask(int priorityMask)
- Parameters:
debugPriorityMask
- the debugPriorityMask to set
setDebugTraceVisible
public static void setDebugTraceVisible(boolean debugTrace)
- Parameters:
debugTrace
- the debugTrace to set