|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--calypso.util.Assert
Simple assertion class that throws exceptions when an assertion fails.
Constructor Summary | |
Assert()
|
Method Summary | |
static void |
Assertion(boolean aCondition)
Throw an exception if aCondition is false. |
static void |
Assertion(boolean aCondition,
java.lang.String aMessage)
Throw an exception if aCondition is false. |
static void |
NotReached(java.lang.String msg)
Throw an exception always. |
static void |
NotYetImplemented(java.lang.String msg)
Throw an exception always. |
static void |
PostCondition(boolean aCondition)
Throw an exception if aCondition is false. |
static void |
PostCondition(boolean aCondition,
java.lang.String aMessage)
Throw an exception if aCondition is false. |
static void |
PreCondition(boolean aCondition)
Throw an exception if aCondition is false. |
static void |
PreCondition(boolean aCondition,
java.lang.String aMessage)
Throw an exception if aCondition is false. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Assert()
Method Detail |
public static final void Assertion(boolean aCondition)
public static final void Assertion(boolean aCondition, java.lang.String aMessage)
public static final void NotReached(java.lang.String msg)
public static final void NotYetImplemented(java.lang.String msg)
public static final void PreCondition(boolean aCondition)
public static final void PreCondition(boolean aCondition, java.lang.String aMessage)
public static final void PostCondition(boolean aCondition)
public static final void PostCondition(boolean aCondition, java.lang.String aMessage)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |