|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.util.Asserts
Debugging util class to terminate the application if the assertion fails. The methods can be turned off in final releases of code by setting ENABLE_ASSERT to false.
Constructor Summary | |
Asserts()
|
Method Summary | |
static void |
isTrue(boolean condition)
If the assertion fails (i.e. |
static void |
isTrue(boolean condition,
java.lang.String message)
|
static void |
notNull(java.lang.Object object)
If the assertion fails (i.e. |
static void |
notNull(java.lang.Object object,
java.lang.String message)
If the assertion fails (i.e. |
static void |
notReached()
If the assertion fails (i.e. |
static void |
notReached(java.lang.String message)
If the assertion fails (i.e. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Asserts()
Method Detail |
public static void isTrue(boolean condition)
public static void isTrue(boolean condition, java.lang.String message)
public static void notReached()
public static void notReached(java.lang.String message)
public static void notNull(java.lang.Object object, java.lang.String message)
public static void notNull(java.lang.Object object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |