org.zkoss.lang
Class D

java.lang.Object
  extended by org.zkoss.lang.D

public class D
extends java.lang.Object

Debugging utilities.

Because Java has no preprocessor, we have to make the debugging codes being able to removed by testing D.ON or D.OFF first.
For example,

if (D.ON) your_test_codes;

Author:
tomyeh

Field Summary
static boolean OFF
          Denotes whether the debugging is OFF.
static boolean ON
          Denotes whether the debugging is ON.
 
Constructor Summary
D()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ON

public static final boolean ON
Denotes whether the debugging is ON. If ON is true, the debugging is turned on. Otherwise, it is turned off.

NOTE: don't modify the definition manually. It is done automatically by bin/setdbg

See Also:
Constant Field Values

OFF

public static final boolean OFF
Denotes whether the debugging is OFF.

See Also:
Constant Field Values
Constructor Detail

D

public D()


Copyright © 2005-2009 Potix Corporation. All Rights Reserved. SourceForge.net Logo