de.cau.cs.kieler.krep.compiler.util
Class Debug

java.lang.Object
  extended by de.cau.cs.kieler.krep.compiler.util.Debug

public final class Debug
extends Object

Print debug informations with different levels of detail.

Rating yellow
(2010-02-05) review by cmot, msp, tam

Field Summary
static int ALL
          verbose mode.
static int NORMAL
          Print only relevant info.
static int SILENT
          Do not print any debug info.
 
Method Summary
static void high(String s)
          print with high priority (in any case).
static boolean isHigh()
           
static void low(String s)
          print with low priority (only in verbose mode).
static void medium(String s)
          print with medium priority.
static void setLevel(int l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SILENT

public static final int SILENT
Do not print any debug info.

See Also:
Constant Field Values

NORMAL

public static final int NORMAL
Print only relevant info.

See Also:
Constant Field Values

ALL

public static final int ALL
verbose mode.

See Also:
Constant Field Values
Method Detail

setLevel

public static void setLevel(int l)
Parameters:
l - debug level

low

public static void low(String s)
print with low priority (only in verbose mode).

Parameters:
s - debug information

high

public static void high(String s)
print with high priority (in any case).

Parameters:
s - debug information

medium

public static void medium(String s)
print with medium priority.

Parameters:
s - debug information

isHigh

public static boolean isHigh()
Returns:
true, if debug level is high.