SunSPOT host API V3.0


com.sun.squawk.security.signing
Class Debug

java.lang.Object
  extended by com.sun.squawk.security.signing.Debug

public final class Debug
extends Object

Author:
Christian

Field Summary
static boolean ENABLED
          DEBUG is used for enabling and disabling debug code, usually to write debug messages which are defined in the form:
if (Debug.ENABLED) { If enabled is set to false the compiler will not include the debug code in the class file, as the statements are unreachable.
 
Constructor Summary
Debug()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENABLED

public static final boolean ENABLED
DEBUG is used for enabling and disabling debug code, usually to write debug messages which are defined in the form:
if (Debug.ENABLED) { If enabled is set to false the compiler will not include the debug code in the class file, as the statements are unreachable. Thus using this kind of debug statements doesn't increase the size of the code. This wouldn't be the case if the statement is in another method, and as code size and execution time is crucial for spots no debug_output method is included in the Debug class and the if statement must be indcluded in the code which needs debug output.
TODO: make a field in SigningService (reverted this changes, as Debug is used in DebugClient as well)

See Also:
Constant Field Values
Constructor Detail

Debug

public Debug()

SunSPOT host API V3.0


Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.