|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.novell.xsl.debug.Assert
A simple assertion class.
Field Summary | |
static boolean |
ENABLED
Flag that enables or disables assertions. |
Method Summary | |
static void |
assertCondition(boolean condition,
String description)
Asserts that the specified condition is true . |
static void |
assertNotReached()
Asserts that the calling statement is never reached. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean ENABLED
false
, most compilers' optimizers, including
javac -O
, should be able to eliminate any runtime
cost.
Method Detail |
public static void assertCondition(boolean condition, String description)
true
.
condition
- the condition that must be satisfieddescription
- a description of the potential failure
AssertionException
- if the condition is false
public static void assertNotReached()
AssertionException
- always thrown
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |