|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwutil.util.Assert
public abstract class Assert
Includes methods for an assertion mechanism. When an assertion fails, it drops into the debugger (in native mode) or just exits (in hosted mode).
Nested Class Summary | |
---|---|
static interface |
Assert.DebugDelegate
|
static class |
Assert.DefaultDebugDelegate
|
Field Summary | |
---|---|
static Assert.DebugDelegate |
_debug
|
Constructor Summary | |
---|---|
Assert()
|
Method Summary | |
---|---|
static void |
_assert(boolean b)
Assert that the given predicate is true. |
static void |
_assert(boolean b,
java.lang.String reason)
Assert that the given predicate is true. |
static void |
TODO()
Print a TODO message and drop into the debugger (in native mode) or just exit (in hosted mode). |
static void |
TODO(java.lang.String s)
Print a TODO message and drop into the debugger (in native mode) or just exit (in hosted mode). |
static void |
UNREACHABLE()
Print an UNREACHABLE message and drop into the debugger (in native mode) or just exit (in hosted mode). |
static void |
UNREACHABLE(java.lang.String s)
Print an UNREACHABLE message and drop into the debugger (in native mode) or just exit (in hosted mode). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Assert.DebugDelegate _debug
Constructor Detail |
---|
public Assert()
Method Detail |
---|
public static void _assert(boolean b)
b
- predicate to checkpublic static void _assert(boolean b, java.lang.String reason)
b
- predicate to checkreason
- string to print if the assertion failspublic static void TODO(java.lang.String s)
s
- message to printpublic static void TODO()
public static void UNREACHABLE(java.lang.String s)
s
- message to printpublic static void UNREACHABLE()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |